Friday, September 28, 2012

Fwd: Changing C comments

Hello,

I have to update many c-source programs and one important point is to
change all the end-of-line comments from 'old C' (/*--*/) to C++ type
(//---). This seems (to me) to be ajob that is often required but I am
unable to find anything on this topic on the web. (Google is, seemingly,
not my friend).
Ideally, Iwould like to change the comments (only single-line ones
though so /* and */ appearing on a line without their 'friend' should
remain.
It would also save a lot of work if there were a way to format all the
new comments so that the '//' was set at a given column (or after the
code if it's too long).
Can anyone point me to some scripts or whatever that might help ??
Sorry if this stuff is easy to find, I can't.

Best regards,

Bob von Knobloch.
--
The Sun is out, the sky is blue. It's time to drive the MR2.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: