📄 python.xml
字号:
<?xml version="1.0" encoding="windows-1251"?>
<SynUniHighlighter Version="2.0">
<SyntaxColoring>
<Info>
<General Name="Python" Extensions="py" Version="1" Revision="0" Sample="#!/usr/local/bin/python
import string, sys
# If no arguments were given, print a helpful message
if len(sys.argv)==1:
print 'Usage: celsius temp1 temp2 ...'
sys.exit(0)
" History=""/>
<Author Name="Vitaly Nevzorov" Mail="nevzorov@yahoo.com" Web="www.delphist.com" Copyright="Copyright (c) Vitaly Nevzorov, 2002" Company="N/A" Remark=""/>
</Info>
<Schemes/>
<Editor/>
<MainRules Name="Root" Style="Root">
<Attributes Foreground="clBlack" Background="clWhite"/>
<Delimiters Value="!"#$%&'()*+,-./:;<=>?@[\]^`{|}~"/>
<SubRules>
<Range Name="Strings '..'" CaseSensitive="True" Style="Strings '..'">
<Attributes Foreground="clRed" Background="clWhite"/>
<Delimiters Value="!"#$%&'()*+,-./:;<=>?@[\]^`{|}~"/>
<OpenToken StartLine=""/>
<CloseToken StartLine=""/>
<Properties/>
<MultiTokens>
<Tokens Open="'" Close="'"/>
</MultiTokens>
<SubRules/>
</Range>
<Range Name="Comments" CaseSensitive="True" Style="Comments">
<Attributes Foreground="$00A00000" Background="clWhite"/>
<Delimiters Value="!"#$%&'()*+,-./:;<=>?@[\]^`{|}~"/>
<OpenToken StartLine=""/>
<CloseToken StartLine=""/>
<Properties CloseOnEol="True"/>
<MultiTokens>
<Tokens Open="#"/>
</MultiTokens>
<SubRules/>
</Range>
<Range Name="Integer" CaseSensitive="True" Style="Integer">
<Attributes Foreground="$00400080" Background="clWhite"/>
<Delimiters Value="!"#$%&'()*+,-./:;<=>?@[\]^`{|}~"/>
<OpenToken StartLine=""/>
<CloseToken StartLine=""/>
<Properties CloseOnTerm="True"/>
<MultiTokens>
<Tokens Open="$"/>
</MultiTokens>
<SubRules/>
</Range>
<Range Name="Strings &qt;..&qt;" CaseSensitive="True" Style="Strings &qt;..&qt;">
<Attributes Foreground="clRed" Background="clWhite"/>
<Delimiters Value="!"#$%&'()*+,-./:;<=>?@[\]^`{|}~"/>
<OpenToken StartLine=""/>
<CloseToken StartLine=""/>
<Properties/>
<MultiTokens>
<Tokens Open=""" Close="""/>
</MultiTokens>
<SubRules/>
</Range>
<Range Name="Methods and Attributes" Style="Methods and Attributes">
<Attributes Foreground="$00FF0080" Background="clWhite"/>
<Delimiters Value="!"#$%&'()*+,-./:;<=>?@[\]^`{|}~"/>
<OpenToken StartLine=""/>
<CloseToken StartLine=""/>
<Properties/>
<MultiTokens>
<Tokens Open="__" Close="__"/>
</MultiTokens>
<SubRules/>
</Range>
<KeyList Name="Key words" Enabled="True" Style="" Words="and
array
fnmatch
struct
self
assert
break
class
continue
def
del
elif
else
except
exec
finally
for
from
global
if
import
in
is
lambda
map
not
None
or
pass print
raise range return
try
while
">
<Attributes Foreground="clGreen" Background="clWhite"/>
</KeyList>
<KeyList Name="Functions" Enabled="True" Style="" Words="abs
apply
callable
chr
cmp
coerce
compile
complex
delattr
dir
divmod
eval
execfile
filter
float
getattr
globals
group
hasattr
hash
hex
id
input
int
intern
isinstance
issubclass
joinfields
len
list
local
long
max
min
match
oct
open
ord
pow
raw_input
reduce
reload
repr
round
search
setattr
slice
str
splitfields
tuple
type
vars
xrange
__import__
">
<Attributes Foreground="clBlue" Background="clWhite"/>
</KeyList>
<KeyList Name="Exceptions" Enabled="True" Style="" Words="ArithmeticError
AssertionError
AttributeError
EOFError
Exception
FloatingPointError
IOError
ImportError
IndexError
KeyError
KeyboardInterrupt
LookupError
MemoryError
NameError
OverflowError
RuntimeError
StandardError
SyntaxError
SystemError
SystemExit
TypeError
ValueError
ZeroDivisionError
">
<Attributes Foreground="clFuchsia" Background="clWhite"/>
</KeyList>
<KeyList Name="Libraries" Enabled="True" Style="" Words="AST
BaseHTTPServer
Bastion
cmd
commands
compileall
copy
CGIHTTPServer
Complex
dbhash
dircmp
dis
dospath
dumbdbm
emacs
find
fmt
fnmatch
ftplib
getopt
glob
gopherlib
grep
htmllib
httplib
ihooks
imghdr
linecache
lockfile
macpath
macurl2path
mailbox
mailcap
mimetools
mimify
mutex
math
Mimewriter
newdir
ni
nntplib
ntpath
nturl2path
os
ospath
pdb
pickle
pipes
poly
popen2
posixfile
posixpath
profile
pstats
pyclbr
Para
quopri
Queue
rand
random
regex
regsub
rfc822
sched
sgmllib
shelve
site
sndhdr
string
sys
snmp
SimpleHTTPServer
StringIO
SocketServer
tb
tempfile
toaiff
token
tokenize
traceback
tty
types
tzparse
Tkinter
urllib
urlparse
util
uu
UserDict
UserList
wave
whatsound
whichdb
whrandom
xdrlib
zmod
">
<Attributes Foreground="clBlack" Background="clWhite"/>
</KeyList>
<KeyList Name="Operators" Enabled="True" Style="" Words="+=
-=
%=
/=
**=
&=
|=
^=
>>=
<<=
==
">
<Attributes Foreground="$00000040" Background="clWhite"/>
</KeyList>
</SubRules>
</MainRules>
</SyntaxColoring>
<CodeFolding/>
<CustomData/>
</SynUniHighlighter>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -