Author Topic: Syntax Highlighting  (Read 2577 times)

cpp

  • Guest
Syntax Highlighting
« on: December 12, 2008, 02:26:19 pm »
Hello,
I'm completely new to C::B and interested in writing some plugins :-)

Is it possible to write a Lexer/Syntax Highlighter in C++ as a plugin?
So eg. I can highlight local variables different from class members and so on. (Like Visual Assist from WholeTomato)

best regards,
Stefan

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: Syntax Highlighting
« Reply #1 on: December 12, 2008, 02:35:38 pm »
Hi!

Lexers are implemented/used by Scintilla, that has been wrapped for wxWidgets into wxScintilla then wrapped into a wxStyledTextCtrl. The C::B cbEditor is based on it.
So I think it would be easier to start from the scintilla C++ lexer than makes a plugin that could not replace C::B editors.

Dje