macro_commentBlock()
macro_commentBlock()
This editor macro adds or removes a block comment to selected text. It is automatically loaded when you use js.component and appears in the macro menu as "Block comment selection".
If the selected text does not start with a block comment, this macro will enclose it in a block comment. If the selected text contains one or more line endings, the block comment start/end is placed on separate lines. Otherwise the block comment will be inline.
If the selected text starts and ends with a block comment, this macro will remove it. If the selected text contains one or more line endings, the lines containing the block comment start/end are removed.