PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Please, can you add folding for 'Macro / EndMacro' ?
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Changes :
- new folding style options in Files\Preferences\Style/Editor, with plus/minus boxes and circles like in the PB IDE (if activated, source loading takes more time).
It was difficult to implement, because jaPBe's coloring routines don't handle all the scintilla markers needed for this, I had to add some markers of my own...
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
I am one of jaPBe greatest fans. It is a tool that makes it so much easier to focus on the goal I'm trying to acheive than having to focus on the tool I'm using to acheive the goal. I appreciate your efforts in making this excellent tool even better.
I have a suggestion that would make jaPBe even better; I realise jaPBe not your main concern, but if its not a difficult addition how about this feature?
To tidy up a block of hastily written code we currently highlight it and press Cntrl+TAB... everything gets indented to follow the structure of the program. This is one of jaPBe great strengths.
If I press SHIFT/Cntrl/TAB the same thing happens but all the comments on lines with source code are indented to match the comment of the first line of the block.
For me this would be productive because I often ghost out a new new bit of code by typing the functions as comments and then put the code in afterwards.
@RichardL : sorry, I don't understand what you mean.
Could you provide a code example (in forum code tags), before and after code reformating by your requested feature ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
; Untidy code
For x = 1 To 100 ; Do 100 times
a.f = Sqr(x) ; Find the root
If a < 5
Beep_(1000,10)
EndIf
Next ;Loop
End
; After highlighting and pressing Cntrl+TAB. Standard jaPBe feature
For x = 1 To 100 ; Do 100 times
a.f = Sqr(x) ; Find the root
If a < 5 ; Small enough?
Beep_(1000,10)
EndIf
Next ;Loop
End
; After highlighting and pressing SHIFT+Cntrl+TAB. Nice to have!
; All comments on lines with code are set to same column as the first line
For x = 1 To 100 ; Do 100 times
a.f = Sqr(x) ; Find the root
If a < 5 ; Small enough?
Beep_(1000,10)
EndIf
Next ; Loop
End
I am a great beleiver in 'tidy looking code'. I have to maintain code that is several years old and a tidy layout is a great help to 'getting back into' old code.