| 1 |
|
| 2 |
from pygments.style import Style |
| 3 |
from pygments.token import ( |
| 4 |
Comment, |
| 5 |
Error, |
| 6 |
Generic, |
| 7 |
Keyword, |
| 8 |
Literal, |
| 9 |
Name, |
| 10 |
Number, |
| 11 |
Operator, |
| 12 |
Other, |
| 13 |
Punctuation, |
| 14 |
String, |
| 15 |
Whitespace, |
| 16 |
) |
| 17 |
|
| 18 |
|
| 19 |
class FlaskyStyle(Style): |
| 20 |
background_color = '#f8f8f8' |
| 21 |
default_style = '' |
| 22 |
|
| 23 |
styles = { |
| 24 |
|
| 25 |
|
| 26 |
Whitespace: 'underline #f8f8f8', |
| 27 |
Error: '#a40000 border:#ef2929', |
| 28 |
Other: '#000000', |
| 29 |
Comment: 'italic #8f5902', |
| 30 |
Comment.Preproc: 'noitalic', |
| 31 |
Keyword: 'bold #004461', |
| 32 |
Keyword.Constant: 'bold #004461', |
| 33 |
Keyword.Declaration: 'bold #004461', |
| 34 |
Keyword.Namespace: 'bold #004461', |
| 35 |
Keyword.Pseudo: 'bold #004461', |
| 36 |
Keyword.Reserved: 'bold #004461', |
| 37 |
Keyword.Type: 'bold #004461', |
| 38 |
Operator: '#582800', |
| 39 |
Operator.Word: 'bold #004461', |
| 40 |
Punctuation: 'bold #000000', |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
Name: '#000000', |
| 45 |
Name.Attribute: '#c4a000', |
| 46 |
Name.Builtin: '#004461', |
| 47 |
Name.Builtin.Pseudo: '#3465a4', |
| 48 |
Name.Class: '#000000', |
| 49 |
Name.Constant: '#000000', |
| 50 |
Name.Decorator: '#888', |
| 51 |
Name.Entity: '#ce5c00', |
| 52 |
Name.Exception: 'bold #cc0000', |
| 53 |
Name.Function: '#000000', |
| 54 |
Name.Property: '#000000', |
| 55 |
Name.Label: '#f57900', |
| 56 |
Name.Namespace: '#000000', |
| 57 |
Name.Other: '#000000', |
| 58 |
Name.Tag: 'bold #004461', |
| 59 |
Name.Variable: '#000000', |
| 60 |
Name.Variable.Class: '#000000', |
| 61 |
Name.Variable.Global: '#000000', |
| 62 |
Name.Variable.Instance: '#000000', |
| 63 |
Number: '#990000', |
| 64 |
Literal: '#000000', |
| 65 |
Literal.Date: '#000000', |
| 66 |
String: '#4e9a06', |
| 67 |
String.Backtick: '#4e9a06', |
| 68 |
String.Char: '#4e9a06', |
| 69 |
String.Doc: 'italic #8f5902', |
| 70 |
String.Double: '#4e9a06', |
| 71 |
String.Escape: '#4e9a06', |
| 72 |
String.Heredoc: '#4e9a06', |
| 73 |
String.Interpol: '#4e9a06', |
| 74 |
String.Other: '#4e9a06', |
| 75 |
String.Regex: '#4e9a06', |
| 76 |
String.Single: '#4e9a06', |
| 77 |
String.Symbol: '#4e9a06', |
| 78 |
Generic: '#000000', |
| 79 |
Generic.Deleted: '#a40000', |
| 80 |
Generic.Emph: 'italic #000000', |
| 81 |
Generic.Error: '#ef2929', |
| 82 |
Generic.Heading: 'bold #000080', |
| 83 |
Generic.Inserted: '#00A000', |
| 84 |
Generic.Output: '#888', |
| 85 |
Generic.Prompt: '#745334', |
| 86 |
Generic.Strong: 'bold #000000', |
| 87 |
Generic.Subheading: 'bold #800080', |
| 88 |
Generic.Traceback: 'bold #a40000', |
| 89 |
} |