Syntax Highlighting, Again.

BlitzMax Forums/BlitzMax Programming/Syntax Highlighting, Again.

daaan(Posted 2006) [#1]
Hey sorry to bring this up again but I can't figure out how to do simple sintax highlighting in blitz max with a textarea and formattext area can anyone give me an example on how to highlight a given keyword?

Thanks.


ozak(Posted 2006) [#2]
http://www.blitzmax.com/Community/posts.php?topic=58856#654939

Use the search luke :)


daaan(Posted 2006) [#3]
@ozak - I found this one and tried it but it is broken. The highlighting doesn't update like it should when editing. Thanks though.


Grisu(Posted 2006) [#4]
You could always take a look at the bmx ide source code.
Keep in mind that highlighting and text operations are AWFUL slow.


ozak(Posted 2006) [#5]
What? My code works perfect here :)
The only problem is that you can't select text.


daaan(Posted 2006) [#6]
@ozak - On my Macbook Pro it loads everything onto one line. Then when you have your code on multiple lines it stops highlighting all keywords. Is this a mac specific problem?


ozak(Posted 2006) [#7]
Perhaps you need to modify it to insert proper cross platform line breaks?
Haven't looked at it in a while but it works fine on windows. I can test it on my mac monday though.


daaan(Posted 2006) [#8]
Yea that would be great. Thanks.