I am using Notepad++ for industrial controls programming (language ST, IEC1131). This language uses sequence of operators also as delimiters for comments. Comments are initiated with (* and terminated with *); however (, *, and ) are also operators.
I created a language definition, but I'm unable to make comments work. When I declare a character as operator in the "User Define" window, even if the text file has the correct sequence to indicate a comment (as defined in the "User Define" dialog), Notepad++ keeps treating each character as individual operator and doesn't identify comments. Comments are correctly identified only when characters (, *, and ) are not declared operators, but then the rest of the code gets misidentified...
Any way this can be fixed, perhaps by checking for comments before identifying individual operators?
Thanks,
Ivan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am using Notepad++ for industrial controls programming (language ST, IEC1131). This language uses sequence of operators also as delimiters for comments. Comments are initiated with (* and terminated with *); however (, *, and ) are also operators.
I created a language definition, but I'm unable to make comments work. When I declare a character as operator in the "User Define" window, even if the text file has the correct sequence to indicate a comment (as defined in the "User Define" dialog), Notepad++ keeps treating each character as individual operator and doesn't identify comments. Comments are correctly identified only when characters (, *, and ) are not declared operators, but then the rest of the code gets misidentified...
Any way this can be fixed, perhaps by checking for comments before identifying individual operators?
Thanks,
Ivan