From 635ec6afeb7cafcab98fe27fa0386760a2f5c2f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Boulogne?= Date: Fri, 10 May 2013 09:10:07 +0200 Subject: [PATCH] add CSS --- README.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1e43b92..91c0218 100644 --- a/README.md +++ b/README.md @@ -116,13 +116,35 @@ If Pandoc wasn't compiled with syntax highlighting support, such a code block wi You can also specify the syntax for inline code spans: `` `some code`{.haskell} ``. -This functionality overlaps somewhat with Ikiwiki's `highlight` plugin and `format` directive: +For syntax highlighting, you may add this in your css style sheet: + + /*From pandoc for code highlighting*/ + table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode { + margin: 0; padding: 0; vertical-align: baseline; border: none; } + table.sourceCode { width: 100%; line-height: 100%; } + td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; } + td.sourceCode { padding-left: 5px; } + code > span.kw { color: #007020; font-weight: bold; } + code > span.dt { color: #902000; } + code > span.dv { color: #40a070; } + code > span.bn { color: #40a070; } + code > span.fl { color: #40a070; } + code > span.ch { color: #4070a0; } + code > span.st { color: #4070a0; } + code > span.co { color: #60a0b0; font-style: italic; } + code > span.ot { color: #007020; } + code > span.al { color: #ff0000; font-weight: bold; } + code > span.fu { color: #06287e; } + code > span.er { color: #ff0000; font-weight: bold; } + + + +Note: This functionality overlaps somewhat with Ikiwiki's `highlight` plugin and `format` directive: [[!format perl """ print "hello, world\n"; """]] -You'll have to decide which facility better suits your needs. ### Tables ### -- 2.39.2