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