News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Syntax Highlighting

Started by cpp, December 12, 2008, 02:26:19 PM

Previous topic - Next topic

cpp

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

dje

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