News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Extending the CPP Lexer

Started by Malc, July 11, 2012, 11:37:11 PM

Previous topic - Next topic

Alpha

Here is the quick hack.  (To do it properly, this should actually be connected to a checkbox in the settings.)

Index: src/sdk/wxscintilla/src/scintilla/lexers/LexCPP.cxx
===================================================================
--- src/sdk/wxscintilla/src/scintilla/lexers/LexCPP.cxx (revision 8148)
+++ src/sdk/wxscintilla/src/scintilla/lexers/LexCPP.cxx (working copy)
@@ -221,7 +221,7 @@
bool highlightWxSmith;
/* C::B end */
OptionsCPP() {
- stylingWithinPreprocessor = false;
+ stylingWithinPreprocessor = true;
identifiersAllowDollars = true;
trackPreprocessor = true;
updatePreprocessor = true;

MortenMacFly

#16
Quote from: Alpha on July 19, 2012, 10:43:55 PM
(To do it properly, this should actually be connected to a checkbox in the settings.)
Which are roughly 3 lines of code and a checkbox in a XRC file you can modify with C::B. Patches are welcome. (Not from you, Alpha - you've done enough already...)

Edit: See:
http://svn.berlios.de/wsvn/codeblocks/branches/xml_compiler/?op=revision&rev=8136&peg=8136
(Only the files editor_configuration.xrc, editorconfigurationdlg.cpp and cbeditor.cpp)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]