Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- """
- pygments.styles.lightbend
- ~~~~~~~~~~~~~~~~~~~~~~~~~
- """
- from pygments.style import Style
- from pygments.token import Keyword, Name, Comment, String, Error, Text, \
- Number, Operator, Generic, Whitespace, Other, Literal, Punctuation
- class LightbendStyle(Style):
- """
- Ligtbend theme
- """
- background_color = '#ffffff'
- default_style = ""
- _text1 = '#1C3B47' # lb-dark-teal
- _string1 = 'nobold #579211' # darkened Play green
- _string2 = 'nobold ' + _text1
- _literal = _string1
- #_keyword = '#D66F00' # orange, darker 25%
- _keyword = '#8E4A00' # orange, darker 50%
- #_keyword = '#f48122' # lb-orange-dkr
- _comment = 'italic #576D75' # lb-light-grey, darkened
- _type = '#1a84ad' # lb-blue
- #_typedef = 'nobold #652b7c' # Lagom
- _typedef = 'nobold #135C8D' # bgcolor blue
- _error = '#E23125' # Scala red
- styles = {
- Text: _text1,
- Whitespace: _text1,
- Error: _error,
- Other: _text1,
- Comment: _comment,
- Comment.Multiline: _comment,
- Comment.Preproc: _comment,
- Comment.Single: _comment,
- Comment.Special: _comment,
- Keyword: _keyword,
- Keyword.Constant: _keyword,
- Keyword.Declaration: _keyword,
- Keyword.Namespace: _keyword,
- Keyword.Pseudo: _keyword,
- Keyword.Reserved: _keyword,
- Keyword.Type: _type,
- Operator: _text1,
- Operator.Word: _text1,
- Name: _text1,
- Name.Attribute: _text1,
- Name.Builtin: '#ff0000',
- Name.Builtin.Pseudo: '#ff0000',
- Name.Class: _typedef,
- Name.Constant: '#ff0000',
- Name.Decorator: '#ff0000',
- Name.Entity: _type,
- Name.Exception: '#ff0000',
- Name.Function: _type,
- Name.Property: '#ff0000',
- Name.Label: _text1,
- Name.Namespace: _type,
- Name.Other: _text1,
- Name.Tag: '#ff0000',
- Name.Variable: '#ff0000',
- Name.Variable.Class: '#ff0000',
- Name.Variable.Global: '#ff0000',
- Name.Variable.Instance: '#ff0000',
- Number: _literal,
- Number.Float: _literal,
- Number.Hex: _literal,
- Number.Integer: _literal,
- Number.Integer.Long: _literal,
- Number.Oct: _literal,
- Literal: _literal,
- Literal.Date: _literal,
- Punctuation: _text1,
- String: _string1,
- String.Backtick: _string1,
- String.Char: _string1,
- String.Doc: _string1,
- String.Double: _string1,
- String.Escape: _string2,
- String.Heredoc: _string1,
- String.Interpol: _string2,
- String.Other: _string1,
- String.Regex: _string1,
- String.Single: _string1,
- String.Symbol: _string1,
- Generic: _text1,
- Generic.Deleted: _text1,
- Generic.Emph: _text1,
- Generic.Error: _text1,
- Generic.Heading: _text1,
- Generic.Inserted: _text1,
- Generic.Output: _text1,
- Generic.Prompt: _text1,
- Generic.Strong: _text1,
- Generic.Subheading: _text1,
- Generic.Traceback: _text1,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement