pshute - 2006-11-29

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.