Page 1 of 1
Adding tags to the editor code colouring
Posted: Thu Mar 31, 2016 4:03 pm
by TheAlgebraist
Hello,
I'm using CodeLite for some time now and got it all set up nice and working. But there is one thing I would like to do, but don't know how.
I have TODO tags in my c++ source files (in the comments) and I would like to have them printed bold and in a special color, so they better to see.
I already looked in the Settings > Colours and Fonts - Menu, but I couldn't figure out how to do this.
Can you help me please?
Bye
Re: Adding tags to the editor code colouring
Posted: Sat Apr 02, 2016 6:56 pm
by TheAlgebraist
Is noone answering because it is impossible?
Or am I just missing anything?
The problem is as follows:
In my C++ source files I have something like the following:
// TODO add state validation
and I want the "TODO" printed in a special way (bold and a color).
I'm using Codelite 9.1.5 (if that is relevant).
Re: Adding tags to the editor code colouring
Posted: Sat Apr 02, 2016 7:57 pm
by eranif
TheAlgebraist wrote:Is noone answering because it is impossible?
Probably because its the weekend...
I don't think that the builtin colouring system of wxStyledTextCtrl support this, and this needs to be done separately, using a different approach (which I am not sure is simple to implement)
Eran
Re: Adding tags to the editor code colouring
Posted: Sat Apr 02, 2016 8:09 pm
by TheAlgebraist
I see. Well I guess then I will just keep my eyes open for non bold tags
Thanks for your reply. And I really like the IDE, it's really the best of all I've tested.
Re: Adding tags to the editor code colouring
Posted: Sat Apr 02, 2016 9:48 pm
by eranif
You can also use the "Tasks" tab at the bottom and click on the "Search" button
See attached screenshot:
todo.png
Eran
Re: Adding tags to the editor code colouring
Posted: Sat Apr 02, 2016 10:28 pm
by TheAlgebraist
Great, that is perfect! Thank you