Multiple comment line positions in Notepad++

  • robsunch

    robsunch - 2014-08-29

    I am using a user-defined language in Notepad++ (for Stata). I want to have two comment line styles. One opens with "*", which is forced at the beginning of lines (allowing leading blanks); the other opens with "//", which can start anywhere in a line. With the user-defined language editor, I only find a way to dump both into one comment line position (say anywhere in a line). Since "*" is frequently used as the wildcard and the multiplication symbol, forcing all those following "*" into comments makes many of the codes hard to read. I don't know if any other language has a similar problem. Is there a way to separate the two comment line positions?

  • Loreia2

    Loreia2 - 2014-08-29

    Hi robsunch,

    try this. Define line comments to start with star character, and select option to force line comments at beginning of line. Then define other line comment (double forward slash) as Delimiter (see example 4 from documentation site:


    Last edit: Loreia2 2014-08-29