|
|
 |
scintilla-interest
Re: [scintilla] New Guy - Question
by Neil Hodgson other posts by this author
Feb 28 2004 9:46PM messages near this date
Re: [scintilla] GetStyleAt always returns 0
|
[scintilla] New Guy - Question
Doyle Whisenant:
> Sorry to ask such a basic question but does anyone have an example of
> using Scintilla with out an external lexer? I want to define my styles
> at run time instead of using a predefined lexer. An example in C would
> be great but C++ is OK as long as it's not MFC. I've studied the Scite
> source but have never understood how the lexers work. I can read some
> C++ but...
Old versions of SciTE performed the lexing themselves by handling the
StyleNeeded notification. Look in
http://scintilla.sourceforge.net/SciTE110.zip
Find SCN_STYLENEEDED in SciTE.cxx and follow the calls to KeyWords.cxx
which contains simple lexers like ColourisePropsDoc and complex ones like
ColouriseHyperTextDoc and ColouriseCppDoc. To receive SCN_STYLENEEDED in
your container window, set the lexer to SCLEX_CONTAINER.
Neil
_______________________________________________
Scintilla-interest mailing list
Scintilla-interest@[...].org
http://mailman.lyra.org/mailman/listinfo/scintilla-interest
Thread:
Otto Wyss
Neil Hodgson
Neil Hodgson
Doyle Whisenant
|
|
|
 |
|