Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-12

Removing comments

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin
to silvioprog
silvioprog wrote
Hi, 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

Reply by email

silvioprog
to Martin: Dont know Jedi seems to do // {} Temporarily you can hide them, via folding. Select all,…

2012/12/8 Martin

Show quoted text 14 lines
On 08/12/2012 19:21, silvioprog wrote: > Hi, > > 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

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!

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121209/7929088b/attachment.html>

Reply by email

silvioprog
to Graeme Geldenhuys: Yeah, using the Search & Replacing dialog. Using regex search string it should do the…

2012/12/8 Graeme Geldenhuys

Show quoted text 16 lines
On 2012-12-08 19:21, silvioprog wrote: > > There 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 - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Good idea. I'll try to write a regex for this.

Thank you!

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121209/4a9578f5/attachment.html>

Reply by email

silvioprog
to silvioprog: 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;*.inc
Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121209/fe6a0e5a/attachment.html>

Reply by email

Anders E. Andersen
to silvioprog

I 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

silvioprog wrote 15 lines
... It would be interesting a command line tool distributed with FPC, something like: $ fpcstripcmts --all *.pas;*.pp;*.inc -- Silvio Cl?cio My public projects - github.com/silvioprog <http://github.com/silvioprog> -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121210/c2681be0/attachment.html>

Reply by email