Page 1 of 1

More (distinct) syntax highlighting

Posted: Mon Aug 11, 2014 1:51 pm
by Derren
Is it possible to add better control over the highlighting?
I found myself wishing that I could mark the "Debug" keyword for example in a different color so that it stands out more.
A workaround would be to create a macro to substitute the keyword, and add the macro's name to the list of user-defined keywords and then give all of those another color. Not very elegant, though.

The source has to be parsed for keywords (PB and user-defined alike). Adding a control where you could set different styles for different keywords would be really nice.

Re: More (distinct) syntax highlighting

Posted: Mon Aug 11, 2014 4:17 pm
by NicTheQuick
Simply add "Debug" to the user defined keywords and change the color for "user defined keywords".

Result:
Image

Re: More (distinct) syntax highlighting

Posted: Mon Aug 11, 2014 5:05 pm
by skywalk
Nice. Didn't think you could do that for PB's keywords.

Re: More (distinct) syntax highlighting

Posted: Mon Aug 11, 2014 9:37 pm
by davido
@NicTheQuick,

Neat! Thanks. :D

Re: More (distinct) syntax highlighting

Posted: Tue Aug 12, 2014 11:54 am
by Derren
Okay, that's better than using a macro. Thanks.
A little more control over the highlighting would still be neat, but my immediate needs have been fulfilled :)