If I use notepad++ to edit a batch file, the word GOTO is highlighted, and labels (starting with ":") are highlighted, but not the label where they follow "goto". E.g.
if a=b goto x
delete a.txt
:x
The x at the end of the first line isn't highlighted, which makes it hard to follow the logic of the batch program.
Playing with user defined language settings, I can tell it that "goto" is the beginning of a comment, which works ok, but I have to make sure it's not also in a keyword list, as that overrides it. I assume the built in batch file definition is stored in C:\Program Files\Notepad++3.8\langs.xml, but I can't see where the comment configuration for batch files is in it, only the keywords.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I use notepad++ to edit a batch file, the word GOTO is highlighted, and labels (starting with ":") are highlighted, but not the label where they follow "goto". E.g.
if a=b goto x
delete a.txt
:x
The x at the end of the first line isn't highlighted, which makes it hard to follow the logic of the batch program.
Playing with user defined language settings, I can tell it that "goto" is the beginning of a comment, which works ok, but I have to make sure it's not also in a keyword list, as that overrides it. I assume the built in batch file definition is stored in C:\Program Files\Notepad++3.8\langs.xml, but I can't see where the comment configuration for batch files is in it, only the keywords.