I've been trying to highlight Python code and convert it to HTML.
For highlighting I used the minted package since it provided a few styles that I was looking for and I used htlatex for HTML conversion. Unfortunately, the background is not set as intended.
When using htlatex, I get the following warning:
"Missing \Configure{\HColor}{DarkGrey}{...} (in Latex: gray 0.1)"
Here is the TeX file:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{minted}
\usepackage{xcolor}
\definecolor{DarkGray}{gray}{0.1}
\usemintedstyle{monokai}
\begin{document}
\begin{minted}
[
frame=lines,
framesep=2mm,
baselinestretch=1.2,
bgcolor=DarkGray
]
{python}
[random python code here...]
\end{minted}
\end{document}
htlatex is called like so:
htlatex test.tex "" "" "" -shell-escape
I am a complete newbie when it comes to latex and I'm probably missing something obvious here. Any help is much appreciated!
