Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Extending the CPP Lexer

<< < (4/4)

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

--- Code: ---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;

--- End code ---

MortenMacFly:

--- 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.)

--- End quote ---
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)

Navigation

[0] Message Index

[*] Previous page

Go to full version