How to highlight my own language?

Discussion Forums discussion How to highlight my own language?

This topic contains 0 voices and has 2 replies.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
July 27, 2006 at 9:17 am #90

codebase
Member

I plan to use PN2 for my own language. But how can i define easier custom highligter.

At the moment i use Scintilla VB-Lexer that highlight keywords, strings (double quote), comments (single quote). I have luck that VB have same symbols for strings and comments :-)

this work fine – but my preprocessor-symbol is “?” – and i like to highlight this line also. but how? (without writing new lexer)

August 7, 2006 at 1:11 pm #15047

simon
Key Master

You could use the schemedef stuff, see other recent threads on this forum for examples. You could change a comment type to be a processor type by matching “?” as the comment-start character. Not sure how that would interact with strings, but might be worth a try.

August 8, 2006 at 10:37 am #15048

codebase
Member

where can i find more informations about schemedef? or some samples.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.