smart comments

General questions regarding the usage of CodeLite
User avatar
zaphod
CodeLite Veteran
Posts: 55
Joined: Fri Sep 11, 2009 6:20 pm
Contact:

smart comments

Post by zaphod »

It would be most cool if Codelite could interpret URLs within traditional C comments:

Code: Select all

/*
    http://man7.org/linux/man-pages/man3/strstr.3.html
*/
I often find myself documenting my code with such references and I have seen others doing the same thing.
It would be even more cool if such comments could be regular HTML so that images, diagrams etc. could be included.

Here we are in the 21st Century and our source code is still plain text. I want pictures!!
Gibbon1
CodeLite Expert
Posts: 167
Joined: Fri Jul 22, 2011 5:32 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: smart comments

Post by Gibbon1 »

You could add a feature request to highlight urls, or better dig in and figure out how to do it and submit a patch. I 'think' highlighting a url might not be too hard.
foxmuldr
CodeLite Expert
Posts: 120
Joined: Sun May 10, 2009 6:56 am
Contact:

Re: smart comments

Post by foxmuldr »

Gibbon1 wrote:You could add a feature request to highlight urls, or better dig in and figure out how to do it and submit a patch. I 'think' highlighting a url might not be too hard.
Should only require identifying the "http://" or "www." prefixes, and then highlighting everything thereafter until there is a whitespace character or end of line.
Best regards,
Rick C. Hodgin
www.Visual-FreePro.org
www.LibSF.org
Post Reply