Page 1 of 1

smart comments

Posted: Wed Jan 28, 2015 11:48 pm
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!!

Re: smart comments

Posted: Thu Jan 29, 2015 1:44 am
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.

Re: smart comments

Posted: Thu Jan 29, 2015 5:23 pm
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.