Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: cpp on December 12, 2008, 02:26:19 pm

Title: Syntax Highlighting
Post by: cpp on December 12, 2008, 02:26:19 pm
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,
Title: Re: Syntax Highlighting
Post by: dje on December 12, 2008, 02:35:38 pm

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.