LaTeX forum ⇒ OthersLaTeX Code Highlighting for Notepad++

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

LaTeX Code Highlighting for Notepad++

Postby Djabo » Sun Apr 14, 2013 10:34 pm

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

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-)
LaTeX Code Highlighting Scheme for Notepad++
(1.03 KiB) Downloaded 4095 times

Recommended reading 2021: •
LaTeX Beginner's Guide LaTeX Cookbook

Return to “Others”

Who is online

Users browsing this forum: No registered users and 2 guests