免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 22515 | 回复: 9
打印 上一主题 下一主题

请问如何让UltraEdit支持python语法高亮显示 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-15 11:18 |只看该作者 |倒序浏览
请问如何让UltraEdit支持python语法高亮显示
前辈指教,谢谢了

论坛徽章:
0
2 [报告]
发表于 2005-12-15 12:59 |只看该作者
编辑ue下的wordfile,增加下面的东东


  1. /L10"Python" Line Comment = # Escape Char = \ File Extensions = PY PYW
  2. /Indent Strings = ":"
  3. /Function String 1 = "%[ ,^t]++def[ ]+^([a-zA-Z0-9_]+*^):"
  4. /Function String 2 = "%[ ,^t]++^(class[ ]+[a-zA-Z0-9_]+*^):"
  5. /Delimiters =         []{}()<>="'.,:+@
  6. /C1"Reserved Words"
  7. and as assert
  8. break
  9. class continue
  10. def del
  11. elif else except exec
  12. finally for from
  13. global
  14. if import in is
  15. lambda
  16. not
  17. or object
  18. pass print
  19. raise range return
  20. try
  21. while
  22. yield
  23. /C2"Built-in Functions"
  24. __import__
  25. abs apply
  26. basestring bool buffer
  27. callable chr classmethod cmp coerce compile complex
  28. delattr dict dir divmod
  29. enumerate eval execfile
  30. Ellipsis
  31. file filter float frozenset
  32. False
  33. getattr globals group
  34. hasattr hash help hex
  35. id input int intern isinstance issubclass iter
  36. joinfields
  37. len list local long
  38. map match max min
  39. None NotImplemented
  40. oct open ord
  41. pow property
  42. raw_input reduce reload repr round
  43. search set setattr slice sorted str splitfields
  44. tuple type
  45. True
  46. unichr unicode
  47. vars
  48. xrange
  49. zip
  50. /C3"__Methods__"
  51. __abs__ __add__ __and__
  52. __call__ __cmp__ __coerce__ __contains__
  53. __del__ __delattr__ __delitem__ __delslice__ __div__ __divmod__
  54. __eq__
  55. __float__ __floordiv__
  56. __ge__ __getattribute__ __getitem__ __getnewargs__ __getslice__ __gt__
  57. __hash__ __hex__
  58. __iadd__ __iand__ __idiv__ __ilshift__ __imod__ __imul__ __init__ __int__ __invert__ __ior__ __ipow__ __irshift__ __isub__ __iter__ __ixor__
  59. __le__ __len__ __long__ __lshift__ __lt__
  60. __mod__ __mul__
  61. __ne__ __neg__ __nonzero__
  62. __oct__ __or__
  63. __pos__ __pow__
  64. __radd__ __rand__ __rdiv__ __rdivmod__ __reduce__ __reduce_ex__ __repr__ __reserved__ __rfloordiv__ __rlshift__ __rmod__ __rmul__ __ror__ __rpow__ __rlshift__ __rrshift__ __rshift__ __rsub__ __rtruediv__ __rxor__
  65. __setattr__ __setitem__ __setslice__ __str__ __sub__
  66. __xor__
  67. add append
  68. capitalize center clear close conjugate copy count
  69. decode difference discard
  70. Decimal
  71. encode endswith expandtabs extend
  72. find flush fileno fromkeys
  73. get getcontext
  74. has_key
  75. index insert intersection intersection_update isalnum isalpha isatty isdigit islower isspace issubset issuperset istitle isupper items iteritems iterkeys itervalues
  76. join
  77. keys
  78. ljust lower lstrip
  79. next
  80. pop popitem
  81. read readline readlines remove replace reverse rfind rindex rjust rsplit rstrip
  82. seek setdefault sort split splitlines startswith strip swapcase symmetric_difference symmetric_difference_update
  83. tell title translate truncate
  84. union update upper
  85. values
  86. write writelines
  87. zfill
  88. /C4"__Attributes__"
  89. __author__
  90. __bases__
  91. __class__
  92. __dict__ __doc__
  93. __email__
  94. __methods__ __members__
  95. __name__
  96. __slots__
  97. __version__
  98. /C5"Exceptions"
  99. ArithmeticError AssertionError AttributeError
  100. DeprecationWarning
  101. EnvironmentError EOFError Exception
  102. FloatingPointError FutureWarning
  103. ImportError IndentationError IndexError IOError
  104. KeyboardInterrupt KeyError
  105. LookupError
  106. MemoryError
  107. NameError NotImplementedError
  108. OSError OverflowWarning OverflowError
  109. PendingDeprecationWarning
  110. ReferenceError RuntimeError RuntimeWarning
  111. StandardError StopIteration SyntaxError SyntaxWarning SystemError SystemExit
  112. TabError TypeError
  113. UnboundLocalError UnicodeError UnicodeDecodeError UnicodeEncodeError UnicodeTranslateError UserWarning
  114. ValueError
  115. Warning WindowsError
  116. ZeroDivisionError
  117. /C6"Operators"
  118. +=
  119. -=
  120. %=
  121. /=
  122. **=
  123. &=
  124. |=
  125. ^=
  126. >>=
  127. <<=
  128. /C7"Common Libs"
  129. __builtin__
  130. __future__
  131. __main__
  132. aepack aetools aetypes aifc al anydbm applesingle atexit array asyncore asynchat audioop autoGIL
  133. AL AST
  134. base64 binascii binhex bisect bsddb buildtools bz2
  135. BaseHTTPServer Bastion
  136. calendar cd cfmfile cgi cgitb chunk cmath cmd code codecs codeop collections colorsys commands compileall cookielib copy_reg cPickle cStringIO csv curses
  137. Carbon CGIHTTPServer ColorPicker Complex ConfigParser Cookie
  138. datetime dbhash decimal difflib dircache dircmp dis distutils dl doctest dospath dumbdbm dummy_thread dummy_threading
  139. DEVICE DocXMLRPCServer
  140. emacs email encodings errno exceptions
  141. EasyDialogs
  142. fcntl filecmp fileinput findertools fl flp fm fmt fnmatch formatter fpectl fpformat ftplib
  143. FL FrameWork
  144. gc gdbm gensuitemodule getopt getpass gettext gl glob gopherlib grep gzip
  145. GL
  146. heapq hmac hotshot htmlentitydefs htmllib httplib
  147. HTMLParser
  148. ic icopen ihooks imaplib imageop imghdr imp imputil inspect itertools
  149. jpeg
  150. keyword
  151. linecache locale lockfile logging
  152. mac macerrors macfs macostools macpath macresource macurl2path mailbox mailcap marshal md5 mhlib mimetools mimetypes mimify mmap multifile mutex math
  153. MacOS MimeWriter MiniAEFrame
  154. netrc new newdir ni nis nntplib nsremote ntpath nturl2path
  155. operator optparse os ossaudiodev
  156. parser pdb pgdb pickle pickletools pipes pkgutil platform poly popen2 poplib posixfile posixpath pprint profile pstats py_compile pyclbr pydoc pyexpat pythonprefs
  157. Para PixMapWrapper
  158. quietconsole quopri
  159. Queue
  160. rand random re regex regsub resource rexec rfc822 rgbimg rlcompleter robotparser rotor
  161. sched select sets sgmllib sha shelve shlex shutil signal site smtpd smtplib sndhdr snmp socket stat statcache statvfs string stringprep struct subprocess sunau symbol sys syslog
  162. ScrolledText SimpleHTTPServer SimpleXMLRPCServer StringIO SocketServer
  163. tabnanny tarfile tb telnetlib tempfile termios test textwrap thread threading time timeit toaiff token tokenize traceback tty turtle types tzparse
  164. TERMIOS Tix Tkinter
  165. unicodedata unittest urllib urllib2 urlparse user util uu
  166. UserDict UserList UserString
  167. videoreader
  168. warnings waste wave weakref webbrowser whatsound whichdb whrandom winsound
  169. xdrlib xml xmllib xmlpackage xmlrpclib
  170. zipfile zlib zmod
  171. /C8"Others"
  172. array
  173. cls
  174. fnmatch
  175. struct self
复制代码

论坛徽章:
0
3 [报告]
发表于 2005-12-15 16:59 |只看该作者
去ultraedit的官方网站上找wordfile,有很多啊(包括python)

论坛徽章:
0
4 [报告]
发表于 2005-12-15 18:49 |只看该作者
原帖由 jkit 于 2005-12-15 12:59 发表
编辑ue下的wordfile,增加下面的东东

[code]
/L10"ython" Line Comment = # Escape Char = \ File Extensions = PY PYW
/Indent Strings = ":"
/Function String 1 = "%[ ,^t]++ ...

多谢,已经搞定了


原帖由 wolfg 于 2005-12-15 16:59 发表
去ultraedit的官方网站上找wordfile,有很多啊(包括python)

前辈,ue的官方网站是多少啊??

论坛徽章:
0
5 [报告]
发表于 2005-12-15 20:17 |只看该作者
原帖由 toocool 于 2005-12-15 18:49 发表

多谢,已经搞定了



前辈,ue的官方网站是多少啊??


google ultraedit

论坛徽章:
0
6 [报告]
发表于 2005-12-16 04:08 |只看该作者

论坛徽章:
0
7 [报告]
发表于 2005-12-16 10:02 |只看该作者
好东西,学了点!

论坛徽章:
0
8 [报告]
发表于 2005-12-16 11:15 |只看该作者

论坛徽章:
0
9 [报告]
发表于 2005-12-16 21:54 |只看该作者
ue打开别的语言的程序都能折叠显示,唯独python不行。

论坛徽章:
3
2015亚冠之阿尔希拉尔
日期:2015-08-15 16:33:2215-16赛季CBA联赛之四川
日期:2016-01-03 13:37:0515-16赛季CBA联赛之四川
日期:2016-06-13 15:53:36
10 [报告]
发表于 2010-09-24 17:24 |只看该作者
编辑ue下的wordfile,增加下面的东东
jkit 发表于 2005-12-15 12:59



    另外,这个文件名保存为“python26.uew”,放在正确位置“C:\Documents and Settings\“电脑用户名”\Application Data\IDMComp\UltraEdit\wordfiles”目录下,
刚开始,我放在“C:\Program Files\IDM Computer Solutions\wordfiles”或者“C:\Program Files\IDM Computer Solutions\UltraEdit\wordfiles”均无效果,后来放对地方后,才正常高亮显示不同颜色。呵呵。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP