summaryrefslogtreecommitdiff
path: root/sandbox/code-block-directive/data
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/code-block-directive/data')
-rw-r--r--sandbox/code-block-directive/data/pygments-default.css8
-rw-r--r--sandbox/code-block-directive/data/pygments-docutilsroles.sty48
2 files changed, 30 insertions, 26 deletions
diff --git a/sandbox/code-block-directive/data/pygments-default.css b/sandbox/code-block-directive/data/pygments-default.css
index 5d933198c..b4dbdae19 100644
--- a/sandbox/code-block-directive/data/pygments-default.css
+++ b/sandbox/code-block-directive/data/pygments-default.css
@@ -12,7 +12,7 @@
/* --------------------------------------- */
/* :: */
-@import url("/stylesheets/html4css1.css");
+@import url("/stylesheets/html4css1.css");
/* Indent the code block */
/* --------------------- */
@@ -20,12 +20,16 @@
/* Content copied from the `html4css1.css` rule for literal blocks. */
/* Selector adapted to the output of Pygments_. :: */
-div.highlight {
+pre.code {
margin-left: 2em ;
margin-right: 2em ;
background-color: #eeeeee
}
+pre.code .ln { /* line numbers */
+/* color: grey; */
+ font-size: small;
+}
/* Colour code blocks */
/* ------------------ */
diff --git a/sandbox/code-block-directive/data/pygments-docutilsroles.sty b/sandbox/code-block-directive/data/pygments-docutilsroles.sty
index d22319772..55c4f8c11 100644
--- a/sandbox/code-block-directive/data/pygments-docutilsroles.sty
+++ b/sandbox/code-block-directive/data/pygments-docutilsroles.sty
@@ -1,6 +1,6 @@
% Stylesheet for pygments enhanced reStructured Text
% ==================================================
-%
+%
% :Author: Günter Milde
% :Contact: milde@users.berlios.de
% :Revision: $Revision: 5534 $
@@ -9,14 +9,14 @@
% Released without warranties or conditions of any kind
% under the terms of the Apache License, Version 2.0
% http://www.apache.org/licenses/LICENSE-2.0
-%
+%
% This example style sheet provides syntax highlight for documents generated
% with the `rst2latex-highlight` pygments-enhanced Docutils front end.
-%
-%
+%
+%
% Separate paragraphs by vertical space
% -------------------------------------
-%
+%
% This is not required for syntax highlight, but usually a good idea for
% documents with lots of source code.
% ::
@@ -25,13 +25,13 @@
% Highlight code blocks
% ---------------------
-%
+%
% Pygments_ has an option to generate stylesheets for HTML and LaTeX.
% However, the "kryptic" codes used for HTML and LaTeX differ, so that
% the output of the command
% `pygmentize -S default -f latex -O commandprefix=docutilsrole`
% fails to work with rst2latex-highlight.
-% ::
+% ::
% Colours with LaTeX
\usepackage{color}
@@ -46,38 +46,38 @@
\renewcommand{\ttdefault}{txtt}
% keyword
-\newcommand\docutilsrolek[1]{\textbf{\textbf{#1}}}
+\newcommand\DUrolek[1]{\textbf{\textbf{#1}}}
% new function
-\newcommand\docutilsrolenf[1]{\textcolor[rgb]{0.00,0.25,0.82}{#1}}
+\newcommand\DUrolenf[1]{\textcolor[rgb]{0.00,0.25,0.82}{#1}}
% punktuation
-% \newcommand\docutilsrolep[1]{\textcolor[rgb]{0.72,0.53,0.04}{#1}}
+% \newcommand\DUrolep[1]{\textcolor[rgb]{0.72,0.53,0.04}{#1}}
% string
-\newcommand\docutilsroles[1]{\textcolor[rgb]{0.40,0.40,0.40}{\textit{#1}}}
+\newcommand\DUroles[1]{\textcolor[rgb]{0.40,0.40,0.40}{\textit{#1}}}
% number
-% \newcommand\docutilsrolemf[1]{\textcolor[rgb]{0.00,0.53,0.00}{#1}}
+% \newcommand\DUrolemf[1]{\textcolor[rgb]{0.00,0.53,0.00}{#1}}
% operator
-\newcommand\docutilsrolear[1]{\textcolor[rgb]{0.72,0.53,0.04}{#1}}
+\newcommand\DUrolear[1]{\textcolor[rgb]{0.72,0.53,0.04}{#1}}
-% Incomplete!
+% Incomplete!
% All STANDARD_TYPES below may appear in the output. (But only the ones
% you like to style need to be defined :-)
% STANDARD_TYPES = {
% Token: '',
-%
+%
% Text: '',
% Whitespace: 'w',
% Error: 'err',
% Other: 'x',
-%
+%
% Keyword: 'k',
% Keyword.Constant: 'kc',
% Keyword.Declaration: 'kd',
% Keyword.Pseudo: 'kp',
% Keyword.Reserved: 'kr',
% Keyword.Type: 'kt',
-%
+%
% Name: 'n',
% Name.Attribute: 'na',
% Name.Builtin: 'nb',
@@ -97,10 +97,10 @@
% Name.Variable.Class: 'vc',
% Name.Variable.Global: 'vg',
% Name.Variable.Instance: 'vi',
-%
+%
% Literal: 'l',
% Literal.Date: 'ld',
-%
+%
% String: 's',
% String.Backtick: 'sb',
% String.Char: 'sc',
@@ -113,25 +113,25 @@
% String.Regex: 'sr',
% String.Single: 's1',
% String.Symbol: 'ss',
-%
+%
% Number: 'm',
% Number.Float: 'mf',
% Number.Hex: 'mh',
% Number.Integer: 'mi',
% Number.Integer.Long: 'il',
% Number.Oct: 'mo',
-%
+%
% Operator: 'o',
% Operator.Word: 'ow',
-%
+%
% Punctuation: 'p',
-%
+%
% Comment: 'c',
% Comment.Multiline: 'cm',
% Comment.Preproc: 'cp',
% Comment.Single: 'c1',
% Comment.Special: 'cs',
-%
+%
% Generic: 'g',
% Generic.Deleted: 'gd',
% Generic.Emph: 'ge',