Hi,
There is a tool for remove all comments (//, {} or (**)) from source code?
Thx.

Mailing lists / lazarus / 2012-12
7 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
There is a tool for remove all comments (//, {} or (**)) from source code?
Thx.
silvioprog wroteHi, There is a tool for remove all comments (//, {} or (**)) from source code?
Dont know
Jedi seems to do // {}
Temporarily you can hide them, via folding. Select all, and right click, the fold-gutter ([+] / [-] / |). There is an option
There is a tool for remove all comments (//, {} or (**)) from source code? Thx. Silvio…
silvioprog wroteThere is a tool for remove all comments (//, {} or (**)) from source code?
Yeah, using the Search & Replacing dialog. Using regex search string it should do the trick without breaking a sweat.
Regards,
- Graeme -
Dont know Jedi seems to do // {} Temporarily you can hide them, via folding. Select all,…
2012/12/8 Martin
I need to remove all comments to make a distribution of my sources without comments. For JS I use http://marijnhaverbeke.nl/uglifyjs .
I'll see the Jedi tool.
Thank you!
Yeah, using the Search & Replacing dialog. Using regex search string it should do the…
2012/12/8 Graeme Geldenhuys
Good idea. I'll try to write a regex for this.
Thank you!
There is a tool for remove all comments (//, {} or (**)) from source code? Thx. Silvio…
... It would be interesting a command line tool distributed with FPC, something like:
$ fpcstripcmts --all *.pas;*.pp;*.incI can not remember a case where I would have found that useful?
Surely it would be dangerous to indiscriminately remove all comments from all source code files, would it not? You would remove code documentation as well?
Excuse me but it just sounds far fetched.
- Anders
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121210/c2681be0/attachment.html>