
Syntax Highlighting
some notes to go with this pictures:
- some stuff is a bit screwed up, mainly because some tabs get last in the parsing (easy to fix)
- not all commands are highlighted yet. not sure how to keep the commands updated, probably it checks if you have an external file, or else it uses an internal commandlist.
- colours, if you don't like them, I WILL make them customizable.
- some explanation on how I did it:
blender draws lines of text line-by-line. So there wasn't such a thing as a "Word" just a "line".
I split the line word by word, check it, and then draw the word in the apropriate color. then I move on to the next word on the line....untill the line is complete.
amazingly enough, so far I don't see any lag with the highlighting turned on. but I havn't checked on older pc's yet (I have a 1Ghz Athlon)
- and finally: IT IS NOT DONE YET!
So here it is, I hope you like it

http://www.roelspruit.com/var/syntax6.jpg
Roel
[/url][/u]