First on, sorry if this is the wrong section - i couldn't find any better. Feel free to move if its wrong :)
So on to my suggestion.
Imagine the following...
class MyClass
{
// ...
}
int main()
{
MyClass something;
// ...
}
Wouldn't it be great, if the "MyClass" in front of the "something" gets highlighted like "int", "char" or "double" or any other default data type would? Its really 'boring', to see it in the default black color..
IDEs like Visual Studio do this already.
Would it be possible to add this any time?
on a predefined set of language keywords, so it would require changes both in the editor code
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:
OnFileSave()
{
wxString keyword = GetKeyWords();
wxScintilla::SetKeyWords(1, keywords);
wxSCintilla::Colourise();
}
this will give u the required results.
However, you still need to implement the 'GetKeyWords()' method, which is another story ;)
Eran