Adding tags to the editor code colouring

CodeLite installation/troubleshooting forum
TheAlgebraist
CodeLite Curious
Posts: 4
Joined: Thu Mar 31, 2016 3:57 pm
Genuine User: Yes
IDE Question: C++
Contact:

Adding tags to the editor code colouring

Post 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
TheAlgebraist
CodeLite Curious
Posts: 4
Joined: Thu Mar 31, 2016 3:57 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Adding tags to the editor code colouring

Post 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).
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Adding tags to the editor code colouring

Post 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
Make sure you have read the HOW TO POST thread
TheAlgebraist
CodeLite Curious
Posts: 4
Joined: Thu Mar 31, 2016 3:57 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Adding tags to the editor code colouring

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Adding tags to the editor code colouring

Post by eranif »

You can also use the "Tasks" tab at the bottom and click on the "Search" button
See attached screenshot:
todo.png
Eran
You do not have the required permissions to view the files attached to this post.
Make sure you have read the HOW TO POST thread
TheAlgebraist
CodeLite Curious
Posts: 4
Joined: Thu Mar 31, 2016 3:57 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Adding tags to the editor code colouring

Post by TheAlgebraist »

Great, that is perfect! Thank you
Post Reply