All pastes #1282876 Raw Edit

filetypes.python

public text v1 · immutable
#1282876 ·published 2008-12-11 18:56 UTC
rendered paste body
# For complete documentation of this file, please see Geany's main documentation
[styling]
# foreground;background;bold;italic
default=0x000000;0xffffff;false;false
commentline=0x808080;0xffffff;false;false
number=0xff0000;0xffffff;false;false
string=0x0000ff;0xffffff;false;false
character=0x0000ff;0xffffff;false;false
word=0xff8000;0xffffff;true;false
triple=0x0008ff;0xffffff;false;true
tripledouble=0x0008ff;0xffffff;false;true
classname=0x8000ff;0xffffff;false;false
defname=0x008000;0xffffff;false;false
operator=0x008080;0xffffff;false;false
identifier=0x000000;0xffffff;false;false
commentblock=0x808080;0xffffff;false;false
stringeol=0x000000;0xe0c0e0;false;false
word2=0x8080ff;0xffffff;false;false
decorator=0x5c801c;0xffffff;false;false

[keywords]
# all items must be in one line
primary=and as assert break class continue def del elif else except exec finally for from global if import in is lambda not or pass print raise return try while with yield False None True
# additional keywords, will be highlighted with style "word2"
identifiers=__abs__ __add__ __and__ __bases__ __call__ __class__ __cmp__ __coerce__ __complex__ __contains__ __debug__ __del__ __delattr__ __delete__ __delitem__ __delslice__ __dict__ __div__ __divmod__ __doc__ __enter__ __eq__ __exit__ __float__ __floordiv__ __func__ __future__ __ge__ __get__ __getattr__ __getattribute__ __getitem__ __getslice__ __gt__ __hash__ __hex__ __iadd__ __iand__ __idiv__ __ifloordiv__ __ilshift__ __import__ __imod__ __imul__ __index__ __init__ __int__ __invert__ __iop__ __ior__ __ipow__ __irshift__ __isub__ __iter__ __itruediv__ __ixor__ __lt__ __le__ __len__ __long__ __lshift__ __methods__ __members__ __metaclass__ __mod__ __module__ __mul__ __name__ __ne__ __neg__ __new__ __nonzero__ __oct__ __op__ __or__ __pos__ __pow__ __radd__ __rand__ __rcmp__ __rdiv__ __rdivmod__ __repr__ __reversed__ __rfloordiv__ __rlshift__ __rmod__ __rmul__ __rop__ __ror__ __rpow__ __rrshift__ __rshift__ __rsub__ __rtruediv__ __rxor__ __self__ __set__ __setattr__ __setitem__ __setslice__ __slots__ __str__ __sub__ __truediv__ __unicode__ __weakref__ __xor__ abs all any apply basestring bin bool buffer callable chr classmethod cmp coerce compile complex copyright credits delattr dict dir divmod enumerate eval execfile exit file filter float frozenset getattr globals hasattr hash help hex id input int intern isinstance issubclass iter len license list locals long map max min next object oct open ord pow property quit range raw_input reduce reload repr reversed round self set setattr slice sorted staticmethod str sum super tuple type unichr unicode vars xrange zip ArithmeticError AssertionError AttributeError BaseException Ellipsis EnvironmentError EOFError Exception FloatingPointError GeneratorExit ImportError IndexError IOError KeyboardInterrupt KeyError LookupError MemoryError NameError NotImplemented NotImplementedError OverflowError OSError ReferenceError RuntimeError StandardError StopIteration SyntaxError SystemError SystemExit TypeError UnboundLocalError UnicodeError UnicodeEncodeError UnicodeDecodeError UnicodeTranslateError ValueError WindowsError ZeroDivisionError Warning UserWarning DeprecationWarning PendingDeprecationWarning SyntaxWarning RuntimeWarning FutureWarning ImportWarning UnicodeWarning

[settings]
# default extension used when saving files
#extension=py

# the following characters are these which a "word" can contains, see documentation
#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789

# if only single comment char is supported like # in this file, leave comment_close blank
comment_open=#
comment_close=

# set to false if a comment character/string should start at column 0 of a line, true uses any
# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
    #command_example();
# setting to false would generate this
#   command_example();
# This setting works only for single line comments
comment_use_indent=true

# context action command (please see Geany's main documentation for details)
context_action_cmd=

[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
# (use only one of it at one time)
compiler=python -c "import py_compile; py_compile.compile('%f')"
run_cmd=python "%f"