Syntax Highlighting, Again.

BlitzMax Forums/BlitzMax Programming/Syntax Highlighting, Again.

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.

http://www.blitzmax.com/Community/posts.php?topic=58856#654939

Use the search luke :)

@ozak - I found this one and tried it but it is broken. The highlighting doesn't update like it should when editing. Thanks though.

You could always take a look at the bmx ide source code.
Keep in mind that highlighting and text operations are AWFUL slow.

What? My code works perfect here :)
The only problem is that you can't select text.

@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?

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.

Yea that would be great. Thanks.