pylit: code cleanup in `Text2Code.__iter__`
[pylit.git] / rstdocs / features / pygments-default.css.txt
blob2c74c17f1893e19aff529af3207a3d5415d50502
1 Stylesheet for pygments enhanced reStructured Text
2 ==================================================
4 :Author:    Guenter Milde
5 :Copyright: 2007 G. Milde
6             This stylesheet is released under the GPL v. 2 or later
8 This stylesheet provides syntax highlight for documents generated with a
9 pygments_ enhanced reStructured Text -> html converter.
11 import the default docutils style sheet
12 ---------------------------------------
16   @import url("/stylesheets/html4css1.css");         
17   
18 Indent code blocks
19 ------------------
21 Content copied from the `html4css1.css` rule for literal blocks.
22 Selector adapted to the output of Pygments_.
24 TODO: why does this fail? 
26 .. sourcecode:: css
28   div.highlight {
29     margin-left: 2em ;
30     margin-right: 2em ;
31     background-color: #eeeeee
32     }
33   
35 Colour code blocks
36 ------------------
38 Pygments_ has an option to generate stylesheets for html and latex.
39 The following code is generated with the command
40 `pygmentize -S default -f html > pygments.css`:
42 .. sourcecode:: css
44   .c { color: #008800; font-style: italic } /* Comment */
45   .err { border: 1px solid #FF0000 } /* Error */
46   .k { color: #AA22FF; font-weight: bold } /* Keyword */
47   .o { color: #666666 } /* Operator */
48   .cm { color: #008800; font-style: italic } /* Comment.Multiline */
49   .cp { color: #008800 } /* Comment.Preproc */
50   .c1 { color: #008800; font-style: italic } /* Comment.Single */
51   .gd { color: #A00000 } /* Generic.Deleted */
52   .ge { font-style: italic } /* Generic.Emph */
53   .gr { color: #FF0000 } /* Generic.Error */
54   .gh { color: #000080; font-weight: bold } /* Generic.Heading */
55   .gi { color: #00A000 } /* Generic.Inserted */
56   .go { color: #808080 } /* Generic.Output */
57   .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
58   .gs { font-weight: bold } /* Generic.Strong */
59   .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
60   .gt { color: #0040D0 } /* Generic.Traceback */
61   .kc { color: #AA22FF; font-weight: bold } /* Keyword.Constant */
62   .kd { color: #AA22FF; font-weight: bold } /* Keyword.Declaration */
63   .kp { color: #AA22FF } /* Keyword.Pseudo */
64   .kr { color: #AA22FF; font-weight: bold } /* Keyword.Reserved */
65   .kt { color: #AA22FF; font-weight: bold } /* Keyword.Type */
66   .m { color: #666666 } /* Literal.Number */
67   .s { color: #BB4444 } /* Literal.String */
68   .na { color: #BB4444 } /* Name.Attribute */
69   .nb { color: #AA22FF } /* Name.Builtin */
70   .nc { color: #0000FF } /* Name.Class */
71   .no { color: #880000 } /* Name.Constant */
72   .nd { color: #AA22FF } /* Name.Decorator */
73   .ni { color: #999999; font-weight: bold } /* Name.Entity */
74   .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
75   .nf { color: #00A000 } /* Name.Function */
76   .nl { color: #A0A000 } /* Name.Label */
77   .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
78   .nt { color: #008000; font-weight: bold } /* Name.Tag */
79   .nv { color: #B8860B } /* Name.Variable */
80   .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
81   .mf { color: #666666 } /* Literal.Number.Float */
82   .mh { color: #666666 } /* Literal.Number.Hex */
83   .mi { color: #666666 } /* Literal.Number.Integer */
84   .mo { color: #666666 } /* Literal.Number.Oct */
85   .sb { color: #BB4444 } /* Literal.String.Backtick */
86   .sc { color: #BB4444 } /* Literal.String.Char */
87   .sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */
88   .s2 { color: #BB4444 } /* Literal.String.Double */
89   .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
90   .sh { color: #BB4444 } /* Literal.String.Heredoc */
91   .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
92   .sx { color: #008000 } /* Literal.String.Other */
93   .sr { color: #BB6688 } /* Literal.String.Regex */
94   .s1 { color: #BB4444 } /* Literal.String.Single */
95   .ss { color: #B8860B } /* Literal.String.Symbol */
96   .bp { color: #AA22FF } /* Name.Builtin.Pseudo */
97   .vc { color: #B8860B } /* Name.Variable.Class */
98   .vg { color: #B8860B } /* Name.Variable.Global */
99   .vi { color: #B8860B } /* Name.Variable.Instance */
100   .il { color: #666666 } /* Literal.Number.Integer.Long */
101   
102 .. _pygments:  http://pygments.org/