Example stylesheets for syntax highlight of code snippets.
[docutils/kirr.git] / sandbox / code-block-directive / data / pygments-default.css
blobb4dbdae195f9b2007ee41d480c6b8d0f4b92c09e
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 /* --------------------------------------- */
13 /* :: */
15 @import url("/stylesheets/html4css1.css");
17 /* Indent the code block */
18 /* --------------------- */
20 /* Content copied from the `html4css1.css` rule for literal blocks. */
21 /* Selector adapted to the output of Pygments_. :: */
23 pre.code {
24 margin-left: 2em ;
25 margin-right: 2em ;
26 background-color: #eeeeee
29 pre.code .ln { /* line numbers */
30 /* color: grey; */
31 font-size: small;
34 /* Colour code blocks */
35 /* ------------------ */
37 /* Pygments_ has an option to generate stylesheets for html and latex. */
38 /* The following code is generated with the command */
39 /* `pygmentize -S default -f html > pygments-default.css`:: */
41 .c { color: #008800; font-style: italic } /* Comment */
42 .err { border: 1px solid #FF0000 } /* Error */
43 .k { color: #AA22FF; font-weight: bold } /* Keyword */
44 .o { color: #666666 } /* Operator */
45 .cm { color: #008800; font-style: italic } /* Comment.Multiline */
46 .cp { color: #008800 } /* Comment.Preproc */
47 .c1 { color: #008800; font-style: italic } /* Comment.Single */
48 .gd { color: #A00000 } /* Generic.Deleted */
49 .ge { font-style: italic } /* Generic.Emph */
50 .gr { color: #FF0000 } /* Generic.Error */
51 .gh { color: #000080; font-weight: bold } /* Generic.Heading */
52 .gi { color: #00A000 } /* Generic.Inserted */
53 .go { color: #808080 } /* Generic.Output */
54 .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
55 .gs { font-weight: bold } /* Generic.Strong */
56 .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
57 .gt { color: #0040D0 } /* Generic.Traceback */
58 .kc { color: #AA22FF; font-weight: bold } /* Keyword.Constant */
59 .kd { color: #AA22FF; font-weight: bold } /* Keyword.Declaration */
60 .kp { color: #AA22FF } /* Keyword.Pseudo */
61 .kr { color: #AA22FF; font-weight: bold } /* Keyword.Reserved */
62 .kt { color: #AA22FF; font-weight: bold } /* Keyword.Type */
63 .m { color: #666666 } /* Literal.Number */
64 .s { color: #BB4444 } /* Literal.String */
65 .na { color: #BB4444 } /* Name.Attribute */
66 .nb { color: #AA22FF } /* Name.Builtin */
67 .nc { color: #0000FF } /* Name.Class */
68 .no { color: #880000 } /* Name.Constant */
69 .nd { color: #AA22FF } /* Name.Decorator */
70 .ni { color: #999999; font-weight: bold } /* Name.Entity */
71 .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
72 .nf { color: #00A000 } /* Name.Function */
73 .nl { color: #A0A000 } /* Name.Label */
74 .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
75 .nt { color: #008000; font-weight: bold } /* Name.Tag */
76 .nv { color: #B8860B } /* Name.Variable */
77 .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
78 .mf { color: #666666 } /* Literal.Number.Float */
79 .mh { color: #666666 } /* Literal.Number.Hex */
80 .mi { color: #666666 } /* Literal.Number.Integer */
81 .mo { color: #666666 } /* Literal.Number.Oct */
82 .sb { color: #BB4444 } /* Literal.String.Backtick */
83 .sc { color: #BB4444 } /* Literal.String.Char */
84 .sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */
85 .s2 { color: #BB4444 } /* Literal.String.Double */
86 .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
87 .sh { color: #BB4444 } /* Literal.String.Heredoc */
88 .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
89 .sx { color: #008000 } /* Literal.String.Other */
90 .sr { color: #BB6688 } /* Literal.String.Regex */
91 .s1 { color: #BB4444 } /* Literal.String.Single */
92 .ss { color: #B8860B } /* Literal.String.Symbol */
93 .bp { color: #AA22FF } /* Name.Builtin.Pseudo */
94 .vc { color: #B8860B } /* Name.Variable.Class */
95 .vg { color: #B8860B } /* Name.Variable.Global */
96 .vi { color: #B8860B } /* Name.Variable.Instance */
97 .il { color: #666666 } /* Literal.Number.Integer.Long */
99 /* .. _pygments: http://pygments.org/ */