[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Formatting comment lines (C code)

From: luca . spinacci
Subject: Formatting comment lines (C code)
Date: Thu, 21 Apr 2005 08:38:31 +0200

I would like to format my comment lines
replacing all spaces and tabs between
'//' and the comment text with only one space.
//____Text.... => //_Text

where '_' is a space.

I use replace-regexp "[^ a-zA-Z0-9/\.]" " "
on a selection of my code but it
doesn't work very well because replaces
characters in the comment text
- for instance replaces )(!-, etc. -.

Any suggestion?

Thank you very much.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]