nxSoftware

Screenshot 1

Styling Purebasic code.

A very quick demo which was knocked up in a few minutes (the demo is included in the GoScintilla download) and which shows some Purebasic type code being styled within a Scintilla control.

This was achieved very quickly by simply setting a few lexer options.
 

 

Screenshot 2

Styling C code!

The problem with configuring the GoScintilla lexer to style C type code is that the lexer does not natively support multi-character separators/delimiters. This means that the lexer cannot identify multi-line block comments (delimited by /* and */).

This demo shows how to use the more advanced features of the GoScintilla wrapper in order to 'supplement' the lexer's functions with our own.

In this case, our demo actually shares the responsibility for styling the text with GoScintilla itself. Code within our demo program takes charge of identifying and styling the multi-line block comments and the rest of the text is handed back to GoScintilla for styling and code-folding etc.