Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B
SmartHighlight
eranif:
--- Quote ---on a predefined set of language keywords, so it would require changes both in the editor code
--- End quote ---
This is not entirely correct...
Scintilla also defines other key word set, that can be used for this purpose for example, you can
handle this in the OnSave(), and update the key words, followed by a call to Colourise().
So doing something like this:
--- Code: ---OnFileSave()
{
wxString keyword = GetKeyWords();
wxScintilla::SetKeyWords(1, keywords);
wxSCintilla::Colourise();
}
--- End code ---
this will give u the required results.
However, you still need to implement the 'GetKeyWords()' method, which is another story ;)
Eran
Navigation
[0] Message Index
[*] Previous page
Go to full version