A simple way to customize the C++ lexer ?

43 views
Skip to first unread message

melion

unread,
Nov 7, 2010, 7:50:49 AM11/7/10
to scite-interest
Hello ! :)

The default C++ lexer doesn't make the difference between instruction
words (if while do return etc) and basic types (void char int float
etc).

How can I customize it so I can colorize keywords differently ?

(I'm using QScintilla, but it is just some sort of wrapper of
scintilla)

Thanks for reading...

Philippe Lhoste

unread,
Nov 8, 2010, 9:44:08 AM11/8/10
to scite-i...@googlegroups.com
On 07/11/2010 13:50, melion wrote:
> The default C++ lexer doesn't make the difference between instruction
> words (if while do return etc) and basic types (void char int float
> etc).
>
> How can I customize it so I can colorize keywords differently ?

In SciTE, you can use the keywords2 list, or perhaps even the keywords4 one.

> (I'm using QScintilla, but it is just some sort of wrapper of
> scintilla)

Then this message belongs more to the Scintilla mailing list...

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

melion

unread,
Nov 8, 2010, 4:12:29 PM11/8/10
to scite-interest
Damnit.
Reply all
Reply to author
Forward
0 new messages