I just wanted to let people know about a few tools for syntax highlighting Stan models typeset in LaTeX.
lstbayes is a LaTeX package that provides Stan language support for the
listings package, which provides environments to highlight code in LaTeX. lstbayes just went up on CTAN (
https://www.ctan.org/pkg/lstbayes), so you'll have to install it manually from either CTAN or github (
https://github.com/jrnold/lstbayes). See
https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages if you've never manually installed a LaTeX package. Though, with lstbayes, all you really need to do is put lstbayes.sty in the same directory as your .tex file.
Additionally
Pygments has support for python, e.g.
http://pygments.org/demo/2784566/. If you haven't stumbled across it, Pygments is a python package and command line tool that is generic code highlighter that outputs to a variety of format including LaTeX and HTML. You can easily use it to highlight code chunks within LaTeX using the
minted package.
Hope these are of some use.