EmEditor (text editor) Forum Index
   EmEditor Core Enhancement Suggestions
     Auto word-wrap comments (specifically C/C++ comments)...
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
Deipotent
Posted on: 1/26/2011 7:13 pm
Just can't stay away
Joined: 2/15/2008
From:
Posts: 118
Auto word-wrap comments (specifically C/C++ comments)...
Not sure if this is a Core enhancement or plugin, so feel free to move the post.

If I have a multi-line comment like:


    /*
     *  line 1
     */
and I press Enter when the cursor is somewhere after the 'l' character of "line 1", I would like EmEditor to automatically add the '*' and two space characters to the next line...


    /*
     *  li
     *  ne 1
     */


Also, if the comment line exceeds the "Wrap By Characters" width, I want EmEditor to automatically wrap the line, and prefix it with the '*' and required number of spaces.

It should also handle single line "//" comments, and insert a "//" plus required number of spaces.

Essentially, I'm after word wrap of C/C++ comments, but it would be nice if it was flexible to handle comments from any type of programming language.

It would also be handy if you could select a comment and have EE word-wrap it correctly.
Flat Previous Topic | Next Topic


Subject Poster Date
 » Auto word-wrap comments (specifically C/C++ comments)... Deipotent 1/26/2011 7:13 pm

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文