From 46e24f0df1c1f124dd39fae13d8f4df844599bc6 Mon Sep 17 00:00:00 2001
From: Paul Jungeblut <paul.jungeblut@gmail.com>
Date: Sun, 14 Feb 2016 00:51:18 +0100
Subject: Adding colors for better look.

---
 tcr.tex | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

(limited to 'tcr.tex')

diff --git a/tcr.tex b/tcr.tex
index f550c2d..f1e2459 100644
--- a/tcr.tex
+++ b/tcr.tex
@@ -21,6 +21,14 @@
 \chead{ChaosKITs}
 \ohead{\pagemark}
 
+% Colors, used for syntax highlighting.
+% To print this document, set all colors to black!
+\usepackage{xcolor}
+\definecolor{keyword}{rgb}{0, 0, 1}
+\definecolor{string}{rgb}{1, 0, 0}
+\definecolor{comment}{rgb}{0.2, 0.6, 0.2}
+\definecolor{identifier}{rgb}{0, 0, 0}
+
 % Source code listings.
 \usepackage{pxfonts}
 \usepackage{listings}
@@ -39,9 +47,10 @@
 	showspaces=false,
 	showstringspaces=false,
 	extendedchars=true,
-	keywordstyle=\bfseries,
-	stringstyle=\bfseries,
-	commentstyle=\itshape\bfseries,
+	keywordstyle=\color{keyword}\bfseries,
+	stringstyle=\color{string}\bfseries,
+	commentstyle=\color{comment}\bfseries,
+  identifierstyle=\color{identifier},
 	frame=trbl
 }
 % Listings doesn't support UTF8. This is just enough for German umlauts.
-- 
cgit v1.2.3

