## LaTeX forum ⇒ Others ⇒ LaTeX Code Highlighting for Notepad++

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

### LaTeX Code Highlighting for Notepad++

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
\begin{align}   \exp(z) := \sum_{n = 0}^{\infty} \frac{z^n}{n!}\end{align}

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.

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!
Attachments
NuTeX.zip
LaTeX Code Highlighting Scheme for Notepad++