ollydbg: The question is: does scintilla support such thing...
to highlight some text in scintilla,
1, scintilla has some(many) keyword groups, each groups can have different text styles(color, bold, italic....)
2, We just add/remove these groups dynamically when we switch translation unit. the clang can supply a full AST, and also we can create a AST interator, and walk through the AST, and build these groups.
3, once the groups are built, it's the scintilla's duty to high light the text.
BTW:
Codelite IDE has this kind of feature, and I have even post some code snippet of Codelite to show how it correct/build the groups in C::B's forum several days ago.