Syntax highlighting of latex code blocks in ikiwiki
3
votes
1
answer
295
views
Is it possible to get syntax highlighting for LaTeX code blocks in ikiwiki (just something like it is automatically done in tex.sx )?
To avoid misunderstandings: I don't mean math output produced for example by mathjax. I want to document latex-tricks in my wiki, so I have to put some snippets of latex source code in it to show how something is done in latex. For example:
"Here is an example how to use tikz:
\begin{document}{article}
\usepackage{amsmath}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) --node[sloped,above]{$x$} (1,1);
\end{tikzpicture}
\end{document}
"
Here the code block above just appears with a grey background but without syntax highlighting of the source code. If I would put the same snipped on tex.sx there would be a syntax highlighting of the code.
Asked by student
(18865 rep)
Nov 2, 2012, 07:13 PM
Last activity: Nov 3, 2012, 07:31 PM
Last activity: Nov 3, 2012, 07:31 PM