How can I get COBOL comments to use proper syntax highlighting in Notepad++ when line numbers are filled in columns 1-6?
I am a developer who is using Notepad++ to code in COBOL. I use the built-in COBOL syntax highlighting, which works under most conditions, but has a particular issue.
COBOL comments are indicated by an asterisk as the 7th character in a line - ordinarily, this works correctly. However, if the 6th character in the line immediately preceding the asterisk is also filled in, the line will incorrectly fail to register as a comment.
* THIS SHOWS AS A COMMENT SH0819* THIS DOES NOT SHOW AS A COMMENT 9* NEITHER DOES THIS
In COBOL, lines 1-6 are used for "line numbers", or alternatively, initials and dates as a form of primitive manual version control. It is common to have these characters filled in, and they should not interfere with the syntax in any way. Is there a way to prevent the 6th character from impacting the syntax highlighting of the 7th character?