Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
manni.py80 linesDownload Raw Back to styles
1"""2    pygments.styles.manni3    ~~~~~~~~~~~~~~~~~~~~~4 5    A colorful style, inspired by the terminal highlighting style.6 7    This is a port of the style used in the `php port`_ of pygments8    by Manni. The style is called 'default' there.9 10    :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.11    :license: BSD, see LICENSE for details.12"""13 14from pygments.style import Style15from pygments.token import Keyword, Name, Comment, String, Error, \16     Number, Operator, Generic, Whitespace17 18 19__all__ = ['ManniStyle']20 21 22class ManniStyle(Style):23    """24    A colorful style, inspired by the terminal highlighting style.25    """26    name = 'manni'27    28    background_color = '#f0f3f3'29 30    styles = {31        Whitespace:         '#bbbbbb',32        Comment:            'italic #0099FF',33        Comment.Preproc:    'noitalic #009999',34        Comment.Special:    'bold',35 36        Keyword:            'bold #006699',37        Keyword.Pseudo:     'nobold',38        Keyword.Type:       '#007788',39 40        Operator:           '#555555',41        Operator.Word:      'bold #000000',42 43        Name.Builtin:       '#336666',44        Name.Function:      '#CC00FF',45        Name.Class:         'bold #00AA88',46        Name.Namespace:     'bold #00CCFF',47        Name.Exception:     'bold #CC0000',48        Name.Variable:      '#003333',49        Name.Constant:      '#336600',50        Name.Label:         '#9999FF',51        Name.Entity:        'bold #999999',52        Name.Attribute:     '#330099',53        Name.Tag:           'bold #330099',54        Name.Decorator:     '#9999FF',55 56        String:             '#CC3300',57        String.Doc:         'italic',58        String.Interpol:    '#AA0000',59        String.Escape:      'bold #CC3300',60        String.Regex:       '#33AAAA',61        String.Symbol:      '#FFCC33',62        String.Other:       '#CC3300',63 64        Number:             '#FF6600',65 66        Generic.Heading:    'bold #003300',67        Generic.Subheading: 'bold #003300',68        Generic.Deleted:    'border:#CC0000 bg:#FFCCCC',69        Generic.Inserted:   'border:#00CC00 bg:#CCFFCC',70        Generic.Error:      '#FF0000',71        Generic.Emph:       'italic',72        Generic.Strong:     'bold',73        Generic.EmphStrong: 'bold italic',74        Generic.Prompt:     'bold #000099',75        Generic.Output:     '#AAAAAA',76        Generic.Traceback:  '#99CC66',77 78        Error:              'bg:#FFAAAA #AA0000'79    }80 
codekingpro/portable-devtools · Team Ai