Syntax highlighting
This article concerns the
macOS
app.
See other variants:
Windows
Contents

It can be difficult to read the syntax of LaTeX source. Like many editors Texpad colours your text according to its role, command, maths, comment, etc.

# Embedded Code

Sometimes source for a different language can be embedded in LaTeX documents, for example lua code in LuaTeX, Haskell in Literate Haskell, or even code listings using minted.

Texpad is sensitive to these cases, and it will not colour code following e.g. \$ symbols as mathematics so that it does not spoil the highlighting for the remainder of your document. In some cases - for example embedded luacode within a \begin{luacode} environment - Texpad will also highlight the embedded code.

Contents