You can define your own language for pandoc https://pandoc.org/MANUAL.html#option--syntax-definition https://github.com/KDE/syntax-highlighting/tree/master/data/syntax $ pandoc --syntax-definition dafny.xml -o test.pdf ~~~dafny ... ~~~ Le samedi 4 avril 2020 23:57:39 UTC+2, Boro Sitnikovski a écrit : > > Hi, > > I am preparing my masters thesis in Pandoc. It is written in a combination > of markdown and TeX files. > > It contains source code from different programming languages for which I > have a corresponding .sty file with `lstdefinelanguage`. However, when I > use the triple backticks (```), the highlighting styles are not applied. > > Is there a way to apply those styles to backticks so that I don't have to > use TeX's `lstlisting`? > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b6ecbefd-98a7-4c06-a0ad-6ad319b0fdea%40googlegroups.com.