1
# -*- coding: utf-8 -*-
3
pygments.styles.perldoc
4
~~~~~~~~~~~~~~~~~~~~~~~
6
Style similar to the style used in the `perldoc`_ code blocks.
8
.. _perldoc: http://perldoc.perl.org/
10
:copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS.
11
:license: BSD, see LICENSE for details.
14
from pygments.style import Style
15
from pygments.token import Keyword, Name, Comment, String, Error, \
16
Number, Operator, Generic, Whitespace
19
class PerldocStyle(Style):
21
Style similar to the style used in the perldoc code blocks.
24
background_color = '#eeeedd'
28
Whitespace: '#bbbbbb',
30
Comment.Preproc: '#1e889b',
31
Comment.Special: '#8B008B bold',
34
String.Heredoc: '#1c7e71 italic',
35
String.Regex: '#B452CD',
36
String.Other: '#cb6c20',
37
String.Regex: '#1c7e71',
41
Operator.Word: '#8B008B',
43
Keyword: '#8B008B bold',
44
Keyword.Type: '#a7a7a7',
46
Name.Class: '#008b45 bold',
47
Name.Exception: '#008b45 bold',
48
Name.Function: '#008b45',
49
Name.Namespace: '#008b45 underline',
50
Name.Variable: '#00688B',
51
Name.Constant: '#00688B',
52
Name.Decorator: '#707a7c',
53
Name.Tag: '#8B008B bold',
54
Name.Attribute: '#658b00',
55
Name.Builtin: '#658b00',
57
Generic.Heading: 'bold #000080',
58
Generic.Subheading: 'bold #800080',
59
Generic.Deleted: '#aa0000',
60
Generic.Inserted: '#00aa00',
61
Generic.Error: '#aa0000',
62
Generic.Emph: 'italic',
63
Generic.Strong: 'bold',
64
Generic.Prompt: '#555555',
65
Generic.Output: '#888888',
66
Generic.Traceback: '#aa0000',
68
Error: 'bg:#e3d2d2 #a61717'