summaryrefslogtreecommitdiff
path: root/listings.tex
diff options
context:
space:
mode:
Diffstat (limited to 'listings.tex')
-rw-r--r--listings.tex30
1 files changed, 30 insertions, 0 deletions
diff --git a/listings.tex b/listings.tex
new file mode 100644
index 0000000..9b88b77
--- /dev/null
+++ b/listings.tex
@@ -0,0 +1,30 @@
+% listings setup
+\definecolor{LISTING_background}{RGB}{245,245,245}
+\lstset{
+ basicstyle=\footnotesize\ttfamily,
+ extendedchars=true,
+ backgroundcolor=\color{LISTING_background},
+ showspaces=false,
+ showstringspaces=false,
+ showtabs=false,
+ frame=single,
+ tabsize=2,
+ breaklines=true,
+ breakatwhitespace=true,
+ postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\hookrightarrow\space}}
+}
+
+\definecolor{XML_string}{RGB}{0,0,0}
+\definecolor{XML_identifier}{RGB}{0,0,128}
+\definecolor{XML_keyword}{RGB}{200,0,0}
+\lstdefinelanguage{XML}
+{
+ morestring=[b]",
+ morestring=[s]{>}{<},
+ morecomment=[s]{<?}{?>},
+ stringstyle=\color{XML_string},
+ identifierstyle=\color{XML_identifier},
+ keywordstyle=\color{XML_keyword},
+ morekeywords={virtio}
+}
+