Basic is easier and more pleasant to read than c or java etc as it doesn't have so many semicolons and braces etc. It also uses words in place of characters like !,$,->,@.
Could there be added a way to for the user to customize the syntax?
For example: Global $var as STRING
instead of: Global var.s
if i > 1 then
instead of: if i > 1
User modify syntax option
Re: User modify syntax option
This is PureBasic, not Visual Basic.
You'll have to live with it.
You could however write macros to do small changes in syntax but that
isn't necessary at all in my opinion.

You'll have to live with it.
You could however write macros to do small changes in syntax but that
isn't necessary at all in my opinion.
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Re: User modify syntax option
use macros:
Code: Select all
Macro As :.: EndMacro
Macro STRING :s: EndMacro
Macro Then :::EndMacro
Global var As STRING
var = "Test"
If var = "Test" Then
Debug 1
EndIf
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: User modify syntax option
Note that "As" already is a PB keyword with another meaning.
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Re: User modify syntax option
Sounds like you are trying to convert code from VB or PowerBasic (or some other basic)... Search & Replace are handy for this! The IDE has a great feature to avoid searching in strings, so it's super fast to delete all of the "Then" keywords. For the Var As String, use Notepad++ with Regular Expressions...once you get the expression figured out, it's an instant change. For short code, it may be faster to do it manually if you aren't a RegEx expert.