KSyntax

A new form of syntax highlighting for Pygment. (this website uses this syntax highlighting)

'''
made by coolkase for pygments

This work is licensed under a Creative Commons Attribution 4.0 International License.
'''

from pygments.style import Style
from pygments.token import Token, Comment, Keyword, Name, String, Error, Number, Operator, Punctuation

class KSyntax(Style):
  styles = {
    Token: 'bg:#000000',
    Keyword: '#fa7970',
    Keyword.Constant: 'bold #77bdfb',
    Keyword.Pseudo: '#a2b2fb',
    Name: '#c6cdd5',
    Name.Attribute: '#77bdfb',
    Name.Decorator: 'italic #89929b',
    Name.Function: 'bold #edd347',
    Name.Class: 'bold #edd347',
    Name.Namespace: 'bold #bd94ea',
    Name.Property: '#3ea99f',
    Name.Variable: '#fa7970',
    String: '#7ce38b',
    Number: '#faa356',
    Number.Hex: '#3ea99f',
    Number.Bin: '#3ea99f',
    Number.Oct: '#3ea99f',
    Number.Integer.Long: '#3ea99f',
    Operator: 'bold #c7daf6',
    Operator.Word: 'nobold #fa7970',
    Comment: 'italic #89929b',
    Comment.Special: 'noitalic #89929b',
    Punctuation: '#c7daf6',
    Error: 'bg:#f00 #ecf2f8'
  }