From 566f21c61f76541eb33ecc6b5556f5097d736a44 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 31 Aug 2011 11:07:45 +0000 Subject: [PATCH] * add syntax highlighting to code examples --- website/code.css | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 website/code.css diff --git a/website/code.css b/website/code.css new file mode 100644 index 00000000..88a9af26 --- /dev/null +++ b/website/code.css @@ -0,0 +1,28 @@ + +code { + display: block; + font: Arial, Helvetica, sans-serif; + line-height: 1.2em; + background-color: #f5f5f5; + border: thin dashed #a2a2a2; + padding: 5px; + margin: 5px 0px; +} + +code .variable { + color: #7f0055; + font-weight: bold; +} + +code .method { + color: #0066cc; +} + +code .string, code .numeral, code .regex { + color: #008800; +} + +code .block { + color: #225577; + font-weight: bold; +}