Commenting

When programming, it is often useful to comment (adding certain tags around or in front of text to mark it is non-code) or uncomment (large) section of text. Notepad++ allows to add two types of comments:

Notepad++ can also remove block comments from text, or toggle them (adding them where absent and removing them where present). These options are available from the Edit menu or the Context Menu (see the section about the Context Menu for more details).

p>Note that if a block comment starts in column 1, and you toggle block comment on a range of lines that contains the line, the line will be uncommented, which is not usually desired. This behaviour is difficult to avoid.