cloudhe 发表于 2013-1-15 03:10:06

Syntax highlights of Python in UltraEdit

Open \UEStudio 06\wordfile.txt (or find in UE menu: 高级->配置->编辑器显示->语法加亮->打开).
 
Append following to the file: (the "/L14" in line one must be changed to the existing last number in your own file plus one)
 
/L14"Python" Line Comment = # Escape Char = \ File Extensions = PY PYW/Indent Strings = ":"/Function String 1 = "%[ ,^t]++def[ ]+^(+*^):"/Function String 2 = "%[ ,^t]++^(class[ ]++*^):"/Delimiters =         []{}()<>="'.,:+@/C1"Reserved Words"and as assertbreakclass continuedef delelif else except execfinally for fromglobalif import in islambdanotor objectpass printraise range returntrywhileyield/C2"Built-in Functions"__import__abs applybasestring bool buffercallable chr classmethod cmp coerce compile complexdelattr dict dir divmodenumerate eval execfileEllipsisfile filter float frozensetFalsegetattr globals grouphasattr hash help hexid input int intern isinstance issubclass iterjoinfieldslen list local longmap match max minNone NotImplementedoct open ordpow propertyraw_input reduce reload repr roundsearch set setattr slice sorted str splitfieldstuple typeTrueunichr unicodevarsxrangezip/C3"__Methods__"__abs__ __add__ __and____call__ __cmp__ __coerce__ __contains____del__ __delattr__ __delitem__ __delslice__ __div__ __divmod____eq____float__ __floordiv__ __ge__ __getattribute__ __getitem__ __getnewargs__ __getslice__ __gt____hash__ __hex____iadd__ __iand__ __idiv__ __ilshift__ __imod__ __imul__ __init__ __int__ __invert__ __ior__ __ipow__ __irshift__ __isub__ __iter__ __ixor____le__ __len__ __long__ __lshift__ __lt____mod__ __mul____ne__ __neg__ __nonzero____oct__ __or____pos__ __pow____radd__ __rand__ __rdiv__ __rdivmod__ __reduce__ __reduce_ex__ __repr__ __reserved__ __rfloordiv__ __rlshift__ __rmod__ __rmul__ __ror__ __rpow__ __rlshift__ __rrshift__ __rshift__ __rsub__ __rtruediv__ __rxor__ __setattr__ __setitem__ __setslice__ __str__ __sub____xor__add appendcapitalize center clear close conjugate copy countdecode difference discardDecimalencode endswith expandtabs extendfind flush fileno fromkeysget getcontexthas_keyindex insert intersection intersection_update isalnum isalpha isatty isdigit islower isspace issubset issuperset istitle isupper items iteritems iterkeys itervaluesjoinkeysljust lower lstripnextpop popitemread readline readlines remove replace reverse rfind rindex rjust rsplit rstripseek setdefault sort split splitlines startswith strip swapcase symmetric_difference symmetric_difference_updatetell title translate truncateunion update uppervalueswrite writelineszfill/C4"__Attributes__"__author____bases____class____dict__ __doc____email____methods__ __members____name____slots____version__/C5"Exceptions"ArithmeticError AssertionError AttributeErrorDeprecationWarningEnvironmentError EOFError ExceptionFloatingPointError FutureWarningImportError IndentationError IndexError IOError KeyboardInterrupt KeyErrorLookupErrorMemoryErrorNameError NotImplementedErrorOSError OverflowWarning OverflowErrorPendingDeprecationWarningReferenceError RuntimeError RuntimeWarningStandardError StopIteration SyntaxError SyntaxWarning SystemError SystemExitTabError TypeErrorUnboundLocalError UnicodeError UnicodeDecodeError UnicodeEncodeError UnicodeTranslateError UserWarningValueErrorWarning WindowsErrorZeroDivisionError/C6"Operators"+= -= %= /= **= &= |= ^= >>= <<=/C7"Common Libs"__builtin____future____main__aepack aetools aetypes aifc al anydbm applesingle atexit array asyncore asynchat audioop autoGILAL AST base64 binascii binhex bisect bsddb buildtools bz2BaseHTTPServer Bastioncalendar cd cfmfile cgi cgitb chunk cmath cmd code codecs codeop collections colorsys commands compileall cookielib copy_reg cPickle cStringIO csv cursesCarbon CGIHTTPServer ColorPicker Complex ConfigParser Cookiedatetime dbhash decimal difflib dircache dircmp dis distutils dl doctest dospath dumbdbm dummy_thread dummy_threadingDEVICE DocXMLRPCServeremacs email encodings errno exceptionsEasyDialogsfcntl filecmp fileinput findertools fl flp fm fmt fnmatch formatter fpectl fpformat ftplibFL FrameWorkgc gdbm gensuitemodule getopt getpass gettext gl glob gopherlib grep gzipGLheapq hmac hotshot htmlentitydefs htmllib httplibHTMLParseric icopen ihooks imaplib imageop imghdr imp imputil inspect itertoolsjpegkeywordlinecache locale lockfile loggingmac macerrors macfs macostools macpath macresource macurl2path mailbox mailcap marshal md5 mhlib mimetools mimetypes mimify mmap multifile mutex mathMacOS MimeWriter MiniAEFramenetrc new newdir ni nis nntplib nsremote ntpath nturl2pathoperator optparse os ossaudiodevparser pdb pgdb pickle pickletools pipes pkgutil platform poly popen2 poplib posixfile posixpath pprint profile pstats py_compile pyclbr pydoc pyexpat pythonprefsPara PixMapWrapperquietconsole quopriQueuerand random re regex regsub resource rexec rfc822 rgbimg rlcompleter robotparser rotorsched select sets sgmllib sha shelve shlex shutil signal site smtpd smtplib sndhdr snmp socket stat statcache statvfs string stringprep struct subprocess sunau symbol sys syslogScrolledText SimpleHTTPServer SimpleXMLRPCServer StringIO SocketServertabnanny tarfile tb telnetlib tempfile termios test textwrap thread threading time timeit toaiff token tokenize traceback tty turtle types tzparseTERMIOS Tix Tkinterunicodedata unittest urllib urllib2 urlparse user util uuUserDict UserList UserStringvideoreaderwarnings waste wave weakref webbrowser whatsound whichdb whrandom winsoundxdrlib xml xmllib xmlpackage xmlrpclibzipfile zlib zmod/C8"Others"arrayclsfnmatchstruct self 
页: [1]
查看完整版本: Syntax highlights of Python in UltraEdit