Show
Ignore:
Timestamp:
02/25/07 18:00:36 (21 months ago)
Author:
Tarek Ziad?? <tarek@…>
Message:

added pygments support

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pycommunity/etc/templates/pycommunity.css

    r73 r77  
    9393} 
    9494 
     95/* pygment styles 
     96XXX this should be generated  
     97on the fly, using: 
     98 
     99    >>> from pygments.formatters import HtmlFormatter 
     100    >>> print HtmlFormatter().get_style_defs('.highlight') 
     101*/ 
     102 
     103.highlight { background: #f8f8f8; } 
     104.highlight .c { color: #008800; font-style: italic } /* Comment */ 
     105.highlight .err { border: 1px solid #FF0000 } /* Error */ 
     106.highlight .k { color: #AA22FF; font-weight: bold } /* Keyword */ 
     107.highlight .o { color: #666666 } /* Operator */ 
     108.highlight .cm { color: #008800; font-style: italic } /* Comment.Multiline */ 
     109.highlight .cp { color: #008800 } /* Comment.Preproc */ 
     110.highlight .c1 { color: #008800; font-style: italic } /* Comment.Single */ 
     111.highlight .cs { color: #008800; font-weight: bold } /* Comment.Special */ 
     112.highlight .gd { color: #A00000 } /* Generic.Deleted */ 
     113.highlight .ge { font-style: italic } /* Generic.Emph */ 
     114.highlight .gr { color: #FF0000 } /* Generic.Error */ 
     115.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ 
     116.highlight .gi { color: #00A000 } /* Generic.Inserted */ 
     117.highlight .go { color: #808080 } /* Generic.Output */ 
     118.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ 
     119.highlight .gs { font-weight: bold } /* Generic.Strong */ 
     120.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ 
     121.highlight .gt { color: #0040D0 } /* Generic.Traceback */ 
     122.highlight .kc { color: #AA22FF; font-weight: bold } /* Keyword.Constant */ 
     123.highlight .kd { color: #AA22FF; font-weight: bold } /* Keyword.Declaration */ 
     124.highlight .kp { color: #AA22FF } /* Keyword.Pseudo */ 
     125.highlight .kr { color: #AA22FF; font-weight: bold } /* Keyword.Reserved */ 
     126.highlight .kt { color: #AA22FF; font-weight: bold } /* Keyword.Type */ 
     127.highlight .m { color: #666666 } /* Literal.Number */ 
     128.highlight .s { color: #BB4444 } /* Literal.String */ 
     129.highlight .na { color: #BB4444 } /* Name.Attribute */ 
     130.highlight .nb { color: #AA22FF } /* Name.Builtin */ 
     131.highlight .nc { color: #0000FF } /* Name.Class */ 
     132.highlight .no { color: #880000 } /* Name.Constant */ 
     133.highlight .nd { color: #AA22FF } /* Name.Decorator */ 
     134.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */ 
     135.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ 
     136.highlight .nf { color: #00A000 } /* Name.Function */ 
     137.highlight .nl { color: #A0A000 } /* Name.Label */ 
     138.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ 
     139.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */ 
     140.highlight .nv { color: #B8860B } /* Name.Variable */ 
     141.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ 
     142.highlight .mf { color: #666666 } /* Literal.Number.Float */ 
     143.highlight .mh { color: #666666 } /* Literal.Number.Hex */ 
     144.highlight .mi { color: #666666 } /* Literal.Number.Integer */ 
     145.highlight .mo { color: #666666 } /* Literal.Number.Oct */ 
     146.highlight .sb { color: #BB4444 } /* Literal.String.Backtick */ 
     147.highlight .sc { color: #BB4444 } /* Literal.String.Char */ 
     148.highlight .sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */ 
     149.highlight .s2 { color: #BB4444 } /* Literal.String.Double */ 
     150.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ 
     151.highlight .sh { color: #BB4444 } /* Literal.String.Heredoc */ 
     152.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ 
     153.highlight .sx { color: #008000 } /* Literal.String.Other */ 
     154.highlight .sr { color: #BB6688 } /* Literal.String.Regex */ 
     155.highlight .s1 { color: #BB4444 } /* Literal.String.Single */ 
     156.highlight .ss { color: #B8860B } /* Literal.String.Symbol */ 
     157.highlight .bp { color: #AA22FF } /* Name.Builtin.Pseudo */ 
     158.highlight .vc { color: #B8860B } /* Name.Variable.Class */ 
     159.highlight .vg { color: #B8860B } /* Name.Variable.Global */ 
     160.highlight .vi { color: #B8860B } /* Name.Variable.Instance */ 
     161.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */ 
     162