When attempting to use the minted
package to highlight a piece of source code in the Mako templating language:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{minted}
\usemintedstyle{borland}
\begin{document}
\begin{minted}{mako}
<%inherit file='base'/>
% for i in range(5):
${i}
% endfor
\end{minted}
\end{document}
I find that the file='base'
fragment is coloured red -- indicating an error. I suspect this is due to the underlying Pygments library having incomplete support for Mako (the code itself is 100% valid). What I am wondering is how I can redefine the error fragment to hide this.