help-gnu-emacs
[Top][All Lists]
Advanced

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

How to comment out blocks in c-style?


From: Zhekka
Subject: How to comment out blocks in c-style?
Date: 8 Jun 2006 07:43:52 -0700
User-agent: G2/0.2

Hi all

I'm using C-c C-c to comment out a block of code. This creates nice C++
style comments, which is beautiful but not good for my ANSI C code. I
would like to assign this key-combination (C-c C-c) C-style comment
fashion. Is this possible?

If my english is bad, here's an illustration:

instead of:
// a = piece+of_code;
// which += was;
// badly(written);

would like to see:
/* a = piece+of_code;
 * which += was;
 * written * well();
 */


Thanks.



reply via email to

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