PHP 8.5.2
Preview: material.py Size: 4.10 KB
//lib/python3/dist-packages/pygments/styles/material.py

"""
    pygments.styles.material
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Mimic the Material theme color scheme.

    https://github.com/material-theme/vsc-material-theme

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
"""

from pygments.style import Style
from pygments.token import Keyword, Name, Comment, String, Escape, \
    Error, Text, Number, Operator, Generic, Punctuation, Literal


__all__ = ['MaterialStyle']


class MaterialStyle(Style):
    """
    This style mimics the Material Theme color scheme.
    """
    name = 'material'
    
    dark_teal = '#263238'
    white = '#FFFFFF'
    black = '#000000'
    red = '#FF5370'
    orange = '#F78C6C'
    yellow = '#FFCB6B'
    green = '#C3E88D'
    cyan = '#89DDFF'
    blue = '#82AAFF'
    paleblue = '#B2CCD6'
    purple = '#C792EA'
    brown = '#C17E70'
    pink = '#F07178'
    violet = '#BB80B3'
    foreground = '#EEFFFF'
    faded = '#546E7A'

    background_color = dark_teal
    highlight_color = '#2C3B41'
    line_number_color = '#37474F'
    line_number_background_color = dark_teal
    line_number_special_color = '#607A86'
    line_number_special_background_color = dark_teal

    styles = {
        Text:                          foreground,
        Escape:                        cyan,
        Error:                         red,

        Keyword:                       violet,
        Keyword.Constant:              cyan,
        Keyword.Declaration:           violet,
        Keyword.Namespace:             'italic ' + cyan,
        Keyword.Pseudo:                cyan,
        Keyword.Type:                  violet,

        Name:                          foreground,
        Name.Attribute:                violet,
        Name.Builtin:                  blue,
        Name.Builtin.Pseudo:           cyan,
        Name.Class:                    yellow,
        Name.Constant:                 foreground,
        Name.Decorator:                blue,
        Name.Entity:                   cyan,
        Name.Exception:                yellow,
        Name.Function:                 blue,
        Name.Function.Magic:           blue,
        Name.Label:                    blue,
        Name.Property:                 yellow,
        Name.Namespace:                yellow,
        Name.Other:                    foreground,
        Name.Tag:                      red,
        Name.Variable:                 cyan,
        Name.Variable.Class:           cyan,
        Name.Variable.Global:          cyan,
        Name.Variable.Instance:        cyan,
        Name.Variable.Magic:           blue,

        Literal:                       green,
        Literal.Date:                  green,

        String:                        green,
        String.Affix:                  violet,
        String.Backtick:               green,
        String.Char:                   green,
        String.Delimiter:              foreground,
        String.Doc:                    'italic ' + faded,
        String.Double:                 green,
        String.Escape:                 foreground,
        String.Heredoc:                green,
        String.Interpol:               cyan,
        String.Other:                  green,
        String.Regex:                  cyan,
        String.Single:                 green,
        String.Symbol:                 cyan,

        Number:                        orange,

        Operator:                      cyan,
        Operator.Word:                 'italic ' + cyan,

        Punctuation:                   cyan,

        Comment:                       'italic ' + faded,

        Generic:                       foreground,
        Generic.Deleted:               red,
        Generic.Emph:                  cyan,
        Generic.Error:                 red,
        Generic.Heading:               green,
        Generic.Inserted:              green,
        Generic.Output:                faded,
        Generic.Prompt:                yellow,
        Generic.Strong:                red,
        Generic.EmphStrong:            yellow,
        Generic.Subheading:            cyan,
        Generic.Traceback:             red,
    }

Directory Contents

Dirs: 1 × Files: 47

Name Size Perms Modified Actions
- drwxr-xr-x 2026-01-08 12:54:43
Edit Download
749 B lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.21 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.23 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
4.45 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.14 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
1.57 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
1.37 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.77 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.53 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.13 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.48 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.54 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.76 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
1.29 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
3.51 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
3.31 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
737 B lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.35 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
3.10 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.02 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
3.10 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.39 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
4.10 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
5.06 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.74 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.00 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
5.26 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
1.68 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
5.53 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
5.54 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.47 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.18 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.48 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
964 B lrw-r--r-- 2024-02-02 13:26:20
Edit Download
1.41 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
4.15 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
831 B lrw-r--r-- 2024-02-02 13:26:20
Edit Download
1.23 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
1.26 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
6.97 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
1.93 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
1.97 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
1.10 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
1.47 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
2.15 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
3.17 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download
1.96 KB lrw-r--r-- 2024-02-02 13:26:20
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).