SyntaxArea (please test)

BlitzMax Forums/MaxGUI Module/SyntaxArea (please test)

klepto2(Posted 2007) [#1]
hi, currently I'm developing a new IDE for Bmax and maybe other BB dialects.
The target is to create a crossplattform single textarea replacement for the standard ones.

Currently it features:
-Text Loading/Saving (unicode)
-Text Editing
-Getting the selected Text
-Linenumbers
-Syntaxhighlighting
-a small parser for getting syntax errors (not build into the test)
- very fast file loading and display (maxide.bmx in ~60ms, minib3d ~150ms)
- low CPU usage
- currently only monotype fonts

planned Features:
-Folding (is already in but not ready ;) )
-All the Edit functionality like Copy,Paste,Cut etc...
-Autolists (like the ones out of VStudio)
-All kinds of Fonts
-and a lot more

the syntaxhighlighter and parser is flexible and Keywords or blocks could be added on the fly. So syntax highlighting for other languages should be very easy to implement.

Here is a small test file:
http://klepto2.kl.funpic.de/DL/CodeArea5.exe

Note: it needs some time to start at the moment, because it is scanning all available modules on the start.

and a small screen:




jsp(Posted 2007) [#2]
Really fast, loads my main code in only 300ms. Well done.
I like the syntax highlight as it shows also the constant values.
One thing i noticed, after start up the line numbering is on but the checkbox is not checked.
And what is this reserved part between the line number and code for?


klepto2(Posted 2007) [#3]
yes, I haven't updated the checkboxes. my fault. The reserved
part is ahm, a picture explains better than 1000 words:


Folding and breakpoints are the magicwords for this part.

and btw thx


grable(Posted 2007) [#4]
Very nice =)

It was a little slow to start up, and it had trouble with my coding fonts.
But other than that great work!

The fonts are the ProggyClean ones, at http://www.proggyfonts.com/index.php?menu=download


klepto2(Posted 2007) [#5]
Small Update:
-Advanced auto selecting by doubleclick and following clicks
-All Clipboard Functions (Cut,Paste,Copy) + Non Clip: Delete
via Context Menu
-Added a cursor for not monospaced fonts

here is the download :

http://klepto2.kl.funpic.de/DL/CodeAreaAdvBeta.exe

PS: Currently the start-up is slow because the highlighter is filled on startup with the keywords and this keywords are read on startup from the modules. so currently they are not cached (will change this as soon s possible).


altitudems(Posted 2007) [#6]
Have you tested it on the Mac yet?


klepto2(Posted 2007) [#7]
no, not yet but a I will do it next week.
btw: some bugs in this test like some selection bugs are alredy solved.


Grisu(Posted 2007) [#8]
136 ms for 5300 lines of code. Not bad!

I like the highlightning btw. ;)