Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I comment out several lines of text at once, using block-comment indicators?

comment indicators text
0
Posted

How can I comment out several lines of text at once, using block-comment indicators?

0

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

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123