I'm a big fan of npp, but it doesn't seem to highlight comment lines in LaTeX (%). There's no option in the 'Styler Configuration' under TeX for COMMENT LINE. Is there a way to fix this?
Cheers,
Ken Pierce.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My big problem is that most of the highlighting for .tex files turns off when you open a second file in another language (e.g. Matlab, C, etc). I have to close and re-open notepad++ to get the highlighting back again. Notepad++ would make a great LaTeX editor, but bugs with the highlighting seriously limit its usefulness.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You may be able to edit langs.xml and enhance the TeX section to look like one of the other languages. The version I have already has % as a comment character, but nothing else. (This might be because I didn't install support for it at installation time.)
Make backups first! --Joel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not sure what npp is doing internally, but it recognises any \foo as a command and gets braces right, but % is displayed as a symbol and doesn't seem to make the line into a comment. I added the line...
...to stylers.xml with no joy. I'm not sure how styleID works, I just made it the next number within the "tex" element. Has anyone else had a similar problem (even with another language)?
Cheers,
Ken.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Against any logics, It works by changing DEFAULT color which affects only comments (here in green 008000).
SYMBOL color affects the % symbol and TEXT color affects the uncommented text.
Hi there,
I'm a big fan of npp, but it doesn't seem to highlight comment lines in LaTeX (%). There's no option in the 'Styler Configuration' under TeX for COMMENT LINE. Is there a way to fix this?
Cheers,
Ken Pierce.
My big problem is that most of the highlighting for .tex files turns off when you open a second file in another language (e.g. Matlab, C, etc). I have to close and re-open notepad++ to get the highlighting back again. Notepad++ would make a great LaTeX editor, but bugs with the highlighting seriously limit its usefulness.
It'll be fixed in v4.2.
Don
You may be able to edit langs.xml and enhance the TeX section to look like one of the other languages. The version I have already has % as a comment character, but nothing else. (This might be because I didn't install support for it at installation time.)
Make backups first! --Joel
Thanks for the reply Joel,
I'm not sure what npp is doing internally, but it recognises any \foo as a command and gets braces right, but % is displayed as a symbol and doesn't seem to make the line into a comment. I added the line...
<WordsStyle name="COMMENT LINE" styleID="6" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
...to stylers.xml with no joy. I'm not sure how styleID works, I just made it the next number within the "tex" element. Has anyone else had a similar problem (even with another language)?
Cheers,
Ken.
Definitely the same problem in version 5.8.6. I've also modified "stylers.xml" in "C:\Documents and Settings\<User>\Application Data\Notepad++\"
"%" sign is prescribed in "langs.xml". No result. It is vexing.
Against any logics, It works by changing DEFAULT color which affects only comments (here in green 008000).
SYMBOL color affects the % symbol and TEXT color affects the uncommented text.
PS : Be sure you modify the right "langs.xml", the one which is taken into account by Notepad++
Last edit: fallino 2013-09-18