Created
May 3, 2016 12:27
-
-
Save szeiger/6a12811b1f91cdcaa6b254817a89db8d to your computer and use it in GitHub Desktop.
Lightbend style for Pygments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- 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, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment