Hi All,
I'm writing a plugin and right now I'm struggling with the following, so maybe you can help me. :-)
Based on a file selected on the project pane, I want to discover the HighlightLanguage for it, but I can't get it to work. What I'm doing is
...
EditorColourSet* theme = ed->GetColourSet();
HighlightLanguage lang = theme->GetLanguageForFilename(prjFile->file.GetFullName());
which returns "CC" for a .cpp file.
However, it should be "C/C++", as confirmed by
wxArrayString langs = theme->GetAllHighlightLanguages();
In the
langs array, there is no "CC", but "C/C++" indeed.
What am I missing here? What's the catch?
BTW, the first code returns an
empty string for a .h file.
