How can I comment out several lines of text at once, using block-comment indicators?
The below method is useful for prepending and appending block-comment indicators to the beginning and end of selected-and-clipboard’ed lines for files of type: JSP, JavaScript, Java where /* marks the beginning of block-comment and */ marks the end of block-comment. For other file-types, substitute the /* and */ accordingly and proceed. • Select some text in an open document within EditPlus. • Start recording a macro by pressing CTRL + Q or by going to Tools, Record, Record Keystrokes… and assign a hot-key, say Alt+1 to it. • You can also assign a label to the macro by pressing the Change Label… button. • Press CTRL + X or go to Edit, Cut. • Type /* and press Enter. • Now press CTRL+V or go to Edit, Paste and press Enter. • Type */ and end recording the Macro by pressing CTRL + Q or Tools, Record, Record Keystrokes. You can also reassign a button on the HTML toolbar: • Open the HTML toolbar auto-complete file htmlbar.acp in your EditPlus folder, e.g. C:\Program Files\EditPlus 3 • D
The below method is useful for prepending and appending block-comment indicators to the beginning and end of selected-and-clipboard’ed lines for files of type: JSP, JavaScript, Java where /* marks the beginning of block-comment and */ marks the end of block-comment. For other file-types, substitute the /* and */ accordingly and proceed. • Select some text in an open document within EditPlus. • Start recording a macro by pressing CTRL + Q or by going to Tools, Record, Record Keystrokes… and assign a hot-key, say Alt+1 to it. • You can also assign a label to the macro by pressing the Change Label… button. • Press CTRL + X or go to Edit, Cut. • Type /* and press Enter. • Now press CTRL+V or go to Edit, Paste and press Enter. • Type */ and end recording the Macro by pressing CTRL + Q or Tools, Record, Record Keystrokes. You can also reassign a button on the HTML toolbar: • Open the HTML toolbar auto-complete file htmlbar.acp in your EditPlus folder, e.g. C:\Program Files\EditPlus 3 • D
How can I comment out several lines of text at once, using block-comment indicators?