A Zig language and style specification for the LaTeX-package listings
- Place the
listings-zig.sty
wherelatex
can find it - Import
listings
andlistings-zig
in your LaTeX document with\usepackage{listings, listings-zig}
- Select the language
Rust
in thelstlistings
environment, e.g.
\begin{lstlisting}[language=Zig]
// code here
\end{lstlisting}