Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • What do you mean "c/c++ don't support nested comments"? What would this buy you over Emacs's standard commenting logic, which is fairly intelligent? The example you give is possible out of the box. Commented Aug 19, 2017 at 8:12
  • No, I meant using 'comment-line, you can disable a chunk of code even if those lines themselves contain a comment. Emacs will escape the embedded comment characters. Commented Aug 19, 2017 at 8:19
  • 1
    Nice, I wasn't aware it would escape nested comments, thats handy. Even so, I find it makes for noisy diffs, so would prefer to use the preprocessor. Commented Aug 19, 2017 at 8:22