OthersLaTeX Code Highlighting for Notepad++

Information and discussion about other LaTeX editors not listed above
Post Reply
Djabo
Posts: 1
Joined: Sun Apr 14, 2013 10:07 pm

LaTeX Code Highlighting for Notepad++

Post by Djabo »

Notepad++ is an awesome editor. I love programming with it.

Unfortunately the built-in code highlighting for (La)TeX doesn't recognize and color math environments, such as $M$, \[ \exp(i z) = \cos(z) + i \,\sin(z) \] or

Code: Select all

Code, edit and compile here:
\begin{align}
\exp(z) := \sum_{n = 0}^{\infty} \frac{z^n}{n!}
\end{align}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
In fact it only colors keywords, delimiters and operators.

Notepad++ however provides for easily creating your own language definitions, which I did.

So this is my ad hoc definition for (La)TeX code highlighting, with emphasis on some math environments and certain keywords. For Code-Folding I'm using \section %\endsection.

To install this language definition, download and unzip "NuTeX.xml" and in Notepad++ menu select [Language > Define your language ... > Import].

Note that it isn't a complete or proper code lighting reflecting all of LaTeX grammar. It certainly features a good number of bugs and was tailored to my own personal use, but you're welcome to change it and then repost your version!

Happy coding! :D 8-)
Attachments
NuTeX.zip
LaTeX Code Highlighting Scheme for Notepad++
(1.03 KiB) Downloaded 4584 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
Post Reply