Advertisement
Guest User

Variable for Text() object tags.

a guest
Dec 21st, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.04 KB | None | 0 0
  1. highlightWords = {'if': 'orange',
  2.                   'else': 'orange',
  3.                   'str': 'purple',
  4.                   'int': 'purple',
  5.                   'elif': 'orange',
  6.                   '\'': 'darkgreen',
  7.                   '#': 'red',
  8.                   '\'\'\'': 'red',
  9.                   'BaseException': '#9932CC',
  10.                   'Exception': '#9932CC',
  11.                   'ArithmeticError': '#9932CC',
  12.                   'BufferError': '#9932CC',
  13.                   'LookupError': '#9932CC',
  14.                   'EnvironmentError': '#9932CC',
  15.                   'AssertionError': '#9932CC',
  16.                   'AttributeError': '#9932CC',
  17.                   'EOFError': '#9932CC',
  18.                   'FloatingPointError': '#9932CC',
  19.                   'GerneratorError': '#9932CC',
  20.                   'IOError': '#9932CC',
  21.                   'ImportError': '#9932CC',
  22.                   'IndexError': '#9932CC',
  23.                   'KeyError': '#9932CC',
  24.                   'KeyboardInterrupt': '#9932CC',
  25.                   'MemoryError': '#9932CC',
  26.                   'NameError': '#9932CC',
  27.                   'NotImplementedError': '#9932CC',
  28.                   'OSError': '#9932CC',
  29.                   'OverflowError': '#9932CC',
  30.                   'ReferenceError': '#9932CC',
  31.                   'RuntimeError': '#9932CC',
  32.                   'StopIteration': '#9932CC',
  33.                   'SyntaxError': '#9932CC',
  34.                   'IndentationError': '#9932CC',
  35.                   'TabError': '#9932CC',
  36.                   'SystemError': '#9932CC',
  37.                   'SystemExit': '#9932CC',
  38.                   'TypeError': '#9932CC',
  39.                   'UnboundLocalError': '#9932CC',
  40.                   'UnicodeError': '#9932CC',
  41.                   'UnicodeEncodeError': '#9932CC',
  42.                   'UnicodeDecodeError': '#9932CC',
  43.                   'UnicodeTranslateError': '#9932CC',
  44.                   'ValueError': '#9932CC',
  45.                   'VMSError': '#9932CC',
  46.                   'WindowsError': '#9932CC',
  47.                   'ZeroDivisionError': '#9932CC',
  48.                   'Warning': '#cccc00',
  49.                   'UserWarning': '#cccc00',
  50.                   'DeprecationWarning': '#cccc00',
  51.                   'PendingDeprecationWarning': '#cccc00',
  52.                   'SyntaxWarning': '#cccc00',
  53.                   'RuntimeWarning': '#cccc00',
  54.                   'ImportWarning': '#cccc00',
  55.                   'FutureWarning': '#cccc00',
  56.                   'UnicodeWarning': '#cccc00',
  57.                   'BytesWarning': '#cccc00',
  58.                   'ResourceWarning': '#cccc00',
  59.                   'try': 'orange',
  60.                   'except': 'orange',
  61.                   'from': 'orange',
  62.                   'import': 'orange',
  63.                   'in': 'orange',
  64.                   'as': 'orange',
  65.                   'for': 'orange',
  66.                   'while': 'orange',
  67.                   'range': 'lightblue',
  68.                   'len': 'lightblue',
  69.                   'True': 'darkorange',
  70.                   'False': 'darkorange'
  71.                   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement