Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
pastie.py79 linesDownload Raw Back to styles
1"""2    pygments.styles.pastie3    ~~~~~~~~~~~~~~~~~~~~~~4 5    Style similar to the `pastie`_ default style.6 7    .. _pastie: http://pastie.caboo.se/8 9    :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.10    :license: BSD, see LICENSE for details.11"""12 13from pygments.style import Style14from pygments.token import Keyword, Name, Comment, String, Error, \15     Number, Operator, Generic, Whitespace16 17 18__all__ = ['PastieStyle']19 20 21class PastieStyle(Style):22    """23    Style similar to the pastie default style.24    """25 26    name = 'pastie'27    28    styles = {29        Whitespace:             '#bbbbbb',30        Comment:                '#888888',31        Comment.Preproc:        'bold #cc0000',32        Comment.Special:        'bg:#fff0f0 bold #cc0000',33 34        String:                 'bg:#fff0f0 #dd2200',35        String.Regex:           'bg:#fff0ff #008800',36        String.Other:           'bg:#f0fff0 #22bb22',37        String.Symbol:          '#aa6600',38        String.Interpol:        '#3333bb',39        String.Escape:          '#0044dd',40 41        Operator.Word:          '#008800',42 43        Keyword:                'bold #008800',44        Keyword.Pseudo:         'nobold',45        Keyword.Type:           '#888888',46 47        Name.Class:             'bold #bb0066',48        Name.Exception:         'bold #bb0066',49        Name.Function:          'bold #0066bb',50        Name.Property:          'bold #336699',51        Name.Namespace:         'bold #bb0066',52        Name.Builtin:           '#003388',53        Name.Variable:          '#336699',54        Name.Variable.Class:    '#336699',55        Name.Variable.Instance: '#3333bb',56        Name.Variable.Global:   '#dd7700',57        Name.Constant:          'bold #003366',58        Name.Tag:               'bold #bb0066',59        Name.Attribute:         '#336699',60        Name.Decorator:         '#555555',61        Name.Label:             'italic #336699',62 63        Number:                 'bold #0000DD',64 65        Generic.Heading:        '#333',66        Generic.Subheading:     '#666',67        Generic.Deleted:        'bg:#ffdddd #000000',68        Generic.Inserted:       'bg:#ddffdd #000000',69        Generic.Error:          '#aa0000',70        Generic.Emph:           'italic',71        Generic.Strong:         'bold',72        Generic.EmphStrong:     'bold italic',73        Generic.Prompt:         '#555555',74        Generic.Output:         '#888888',75        Generic.Traceback:      '#aa0000',76 77        Error:                  'bg:#e3d2d2 #a61717'78    }79 
codekingpro/portable-devtools · Team Ai