User forums > Help

feature request: different colors for C-style and C++-style comments

<< < (2/4) > >>

vix:

--- Quote ---vix: have you run the src/update.bat or src/update scripts?
--- End quote ---
From this question I think the the answer to mine is "yes, I must recompile C::B from the sources


--- Quote ---By the way, it seems C::B can change both "C" and "c++" comment to the same color.
--- End quote ---
Yes, but maybe a little modification to the lexer should be enough.
Now I'm going to check

dmoore:
try attached lexer file (unzip to share/Codeblocks/lexers)

[attachment deleted by admin]

vix:
dmoore: you modified the lexer exactly as I tried this morning, but unfortunately nothing changes if I overwrite the lexer of the Nightly Build. I think I have to recompile C::B after overwriting the lexer, but I found a lot of compilation errors...  :(

danselmi:
dmoores lexer configuration worked for me (without recompiling cb).

you have to modify the lexer configuration in the output-dir (not in the source tree)

vix:
I have the last Nightly Build (svn 6080) installed on my Win XP SP2, so I overwrite the
C:\Programmi\CodeBlocks\share\CodeBlocks\lexers\lexer_cpp.xml with the one posted by dmoore.
I started C::B but inside Settings >> Editor >> Syntax Highlighting >> C/C++ I can't see the two new items Comment line and Comment line (documentation) that have been created into the lexer

I've been trying to recompile C::B from the sources (and in the past I was able to do that, because I tested the wxAUI branch before merged into trunk) but I find a lot of errors. This is the first time I try to recompile C::B since I replaced the standard MinGW with the TDM-MinGW.
I have to look deeper...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version