CSS does not have a line comment. But I want to use the same shortcut key to comment selected lines. I want UltraEdit to insert /* at the beginning of the first line selected and */ at the end of the last line selected.
I know that the commands Comment Add and Comment Remove cannot be used as they work only with line comments.
I also know that there are in menu Edit at bottom the commands Comment Selection and Uncomment Selection to insert/remove a block comment on selected text since UltraEdit v16.00.
There is also a macro solution posted at macro to comment block of code and a template solution for adding the block comment strings as posted at CSS add/remove comment button greyed out.
But I don't know how to write a macro that will let me select parts of a line and inserts the /* and */ in the right place.
I also want to start the selection anywhere in line 1 and end the selection anywhere in line 3, press the comment shortcut key to remove the /* and */.
Anyone know how to do this?
I know that the commands Comment Add and Comment Remove cannot be used as they work only with line comments.
I also know that there are in menu Edit at bottom the commands Comment Selection and Uncomment Selection to insert/remove a block comment on selected text since UltraEdit v16.00.
There is also a macro solution posted at macro to comment block of code and a template solution for adding the block comment strings as posted at CSS add/remove comment button greyed out.
But I don't know how to write a macro that will let me select parts of a line and inserts the /* and */ in the right place.
Code: Select all
the<BeginSelection>first line
the second line
the third<EndSelection>line
Code: Select all
/* the first line
the second line
the third line */
Anyone know how to do this?