幻想森林

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2803|回复: 3

[NS] [推荐]EditPlus、UltraEdit语法高亮文件

[复制链接]

1

主题

3

帖子

35

积分

②入门

积分
35
QQ
发表于 2007-2-24 22:57:38 | 显示全部楼层 |阅读模式
下载地址 http://www.szyuye.com/EP_UE.rar

EditPlus:
NS.acp NS.stx放到软件目录下,打开软件,“工具-参数-设置和语法”,“文件类型”选Text(若无,自己添加一个,扩展名为txt),“设置与语法”的“语法文件”,选NS.stx,“自动完成”选NS.acp,“语法着色”自己设置。

UltraEdit:
wordfile.txt 替换原文件
打开软件,“高级-配置-编辑器显示-语法加亮”,“颜色选择”中,“语言”选NS,然后对颜色组进行设定颜色。

注:命令着色并不全,若要添加,请打开那三个文件自己修改,特别注意的是UE的要按字母顺序排列,切记。

哪位有更好的,或是在此基础上完善补充的,欢迎分享,请抽空发我一份,chuilianzi@163.com

下面是三个文件的代码,为不能下载的朋友准备(不知道会不会被系统过滤掉某些字符,以下载为准):
NS.acp :
  1. #TITLE=NS
  2. ; EditPlus Auto-completion file v1.0 written by ES-Computing.
  3. ; This file is provided as a default auto-completion file for NS.
  4. #CASE=y
  5. #T=for
  6. for
  7. next
  8. #
复制代码

NS.stx:
  1. #TITLE=NS
  2. ; Perl syntax file written by ES-Computing.
  3. ; This file is required for EditPlus to run correctly.
  4. #DELIMITER=,(){}[]-+*/=~!&|<>?:;.
  5. #QUOTATION1='
  6. #QUOTATION2="
  7. #CONTINUE_QUOTE=y
  8. #LINECOMMENT=;
  9. #CASE=y
  10. #PREFIX3=$
  11. #PREFIX4=?
  12. #PREFIX5=%
  13. #HEREDOC=<<EOF
  14. #NUMBER_PATTERN=cpp
  15. #SPECIAL_STX=NS
  16. #KEYWORD=Reserved words
  17. !d
  18. !s
  19. !sd
  20. !w
  21. abssetcursor
  22. add
  23. amsp
  24. arc
  25. atoi
  26. autoclick
  27. automode
  28. automode_time
  29. avi
  30. bar
  31. barclear
  32. bg
  33. bgalia
  34. blt
  35. br
  36. break
  37. btn
  38. btndef
  39. btnnowindowerase
  40. btntime
  41. btnwait
  42. btnwait2
  43. caption
  44. cdfadeout
  45. cell
  46. cl
  47. click
  48. clickpos
  49. clickstr
  50. clickvoice
  51. cmp
  52. csel
  53. cselbtn
  54. cselgoto
  55. csp
  56. date
  57. dec
  58. defaultfont
  59. defaultspeed
  60. defmp3vol
  61. defsevol
  62. defsub
  63. defvoicevol
  64. delay
  65. dim
  66. div
  67. dsound
  68. dwave
  69. dwaveload
  70. dwaveloop
  71. dwaveplay
  72. dwaveplayloop
  73. dwavestop
  74. effect
  75. effectblank
  76. effectcut
  77. erasetextwindow
  78. exbtn
  79. exbtn_d
  80. fchk
  81. filelog
  82. for
  83. getbtntimer
  84. getcselnum
  85. getcursorpos
  86. getini
  87. getreg
  88. gettimer
  89. getversion
  90. globalon
  91. gosub
  92. gosub
  93. goto
  94. humanz
  95. if
  96. inc
  97. input
  98. inputstr
  99. intlimit
  100. itoa
  101. jumpb
  102. jumpf
  103. kidokuskip
  104. killmenu
  105. labellog
  106. lchk
  107. ld
  108. linepage
  109. loadgame
  110. loadgosub
  111. locate
  112. lookbackbutton
  113. lookbackcolor
  114. lookbackflush
  115. lookbackvoice
  116. lr_trap
  117. lr_trap2
  118. lsp
  119. lsph
  120. menu_click_def
  121. menu_click_page
  122. menu_full
  123. menu_window
  124. menuselectcolor
  125. menuselectvoice
  126. menusetwindow
  127. mesbox
  128. mid
  129. mod
  130. mode_ext
  131. mode_saya
  132. mode_wave_demo
  133. mode800
  134. monocro
  135. mousecursor
  136. mov
  137. mov10
  138. mov3
  139. mov4
  140. mov5
  141. mov6
  142. mov7
  143. mov8
  144. mov9
  145. movl
  146. mp3
  147. mp3fadeout
  148. mp3loop
  149. mp3save
  150. mpegplay
  151. msp
  152. mul
  153. nega
  154. next
  155. notif
  156. nsa
  157. nsadir
  158. numalias
  159. ofscpy
  160. play
  161. playonce
  162. playstop
  163. print
  164. prnum
  165. prnumclear
  166. puttext
  167. quake
  168. quakex
  169. quakey
  170. repaint
  171. resettimer
  172. rlookback
  173. rmenu
  174. rmode
  175. rnd
  176. rnd2
  177. roff
  178. savedir
  179. savefileexist
  180. savegame
  181. savename
  182. savenumber
  183. saveoff
  184. saveon
  185. savetime
  186. select
  187. selectbtnwait
  188. selectcolor
  189. selectvoice
  190. selgosub
  191. selnum
  192. setcursor
  193. setwindow
  194. setwindow2
  195. shadedistance
  196. skip
  197. skipoff
  198. soundpressplgin
  199. spbtn
  200. spfont
  201. spi
  202. spstr
  203. spwait
  204. stop
  205. stralias
  206. strsp
  207. sub
  208. systemcall
  209. tal
  210. texec
  211. textbtnwait
  212. textclear
  213. textgosub
  214. textoff
  215. texton
  216. textspeed
  217. time
  218. to
  219. transmode
  220. trap
  221. trap2
  222. underline
  223. versionstr
  224. vsp
  225. wait
  226. waittimer
  227. wave
  228. waveloop
  229. wavestop
  230. windowback
  231. windoweffect
  232. #KEYWORD=Built-in functions
  233. *
  234. define
  235. start
  236. game
  237. reset
  238. definereset
  239. end
  240. return
  241. #KEYWORD=Scalar variables
  242. #KEYWORD=Array variables
  243. #KEYWORD=Hash variables
  244. #
复制代码

wordfile.txt在原文件末尾添加(注意自己的文件语言排到了多少号 /L12就是第12个):
  1. /L12"NS" NS_LANG Line Comment = ; Line Comment Preceding Chars = [~[^]^^$/\(] File Extensions = TXT
  2. /Delimiters = ~!@$%^&*()+=|\/{}[]:;"'<>     ,.?\`/
  3. /Function String   = "%[ ^t]++sub[ ^t]+^([a-zA-Z0-9_]+^)[#]"
  4. /Function String 1 = "%[ ^t]++sub[ ^t]+^([a-zA-Z0-9_]+^)[ ^t{^p]"
  5. /Function String 2 = "%[ ^t]++sub[ ^t]+^([a-zA-Z0-9_]+^)[ ^t]++(*)[ ^t{^p#]"
  6. /Function String 3 = "%[ ^t]++^([a-zA-Z0-9_]+^):[ ^t^p]"
  7. /Indent Strings = "{"
  8. /Unindent Strings = "}"
  9. /Open Brace Strings =  "{" "(" "["
  10. /Close Brace Strings = "}" ")" "]"
  11. /Open Fold Strings = "{"
  12. /Close Fold Strings = "}"
  13. /C1"Keywords" STYLE_KEYWORD
  14. !d
  15. !s
  16. !sd
  17. !w
  18. abssetcursor
  19. add
  20. amsp
  21. arc
  22. atoi
  23. autoclick
  24. automode
  25. automode_time
  26. avi
  27. bar
  28. barclear
  29. bg
  30. bgalia
  31. blt
  32. br
  33. break
  34. btn
  35. btndef
  36. btnnowindowerase
  37. btntime
  38. btnwait
  39. btnwait2
  40. caption
  41. cdfadeout
  42. cell
  43. cl
  44. click
  45. clickpos
  46. clickstr
  47. clickvoice
  48. cmp
  49. csel
  50. cselbtn
  51. cselgoto
  52. csp
  53. date
  54. dec
  55. defaultfont
  56. defaultspeed
  57. defmp3vol
  58. defsevol
  59. defsub
  60. defvoicevol
  61. delay
  62. dim
  63. div
  64. dsound
  65. dwave
  66. dwaveload
  67. dwaveloop
  68. dwaveplay
  69. dwaveplayloop
  70. dwavestop
  71. effect
  72. effectblank
  73. effectcut
  74. erasetextwindow
  75. exbtn
  76. exbtn_d
  77. fchk
  78. filelog
  79. for
  80. getbtntimer
  81. getcselnum
  82. getcursorpos
  83. getini
  84. getreg
  85. gettimer
  86. getversion
  87. globalon
  88. gosub
  89. gosub
  90. goto
  91. humanz
  92. if
  93. inc
  94. input
  95. inputstr
  96. intlimit
  97. itoa
  98. jumpb
  99. jumpf
  100. kidokuskip
  101. killmenu
  102. labellog
  103. lchk
  104. ld
  105. linepage
  106. loadgame
  107. loadgosub
  108. locate
  109. lookbackbutton
  110. lookbackcolor
  111. lookbackflush
  112. lookbackvoice
  113. lr_trap
  114. lr_trap2
  115. lsp
  116. lsph
  117. menu_click_def
  118. menu_click_page
  119. menu_full
  120. menu_window
  121. menuselectcolor
  122. menuselectvoice
  123. menusetwindow
  124. mesbox
  125. mid
  126. mod
  127. mode_ext
  128. mode_saya
  129. mode_wave_demo
  130. mode800
  131. monocro
  132. mousecursor
  133. mov
  134. mov10
  135. mov3
  136. mov4
  137. mov5
  138. mov6
  139. mov7
  140. mov8
  141. mov9
  142. movl
  143. mp3
  144. mp3fadeout
  145. mp3loop
  146. mp3save
  147. mpegplay
  148. msp
  149. mul
  150. nega
  151. next
  152. notif
  153. nsa
  154. nsadir
  155. numalias
  156. ofscpy
  157. play
  158. playonce
  159. playstop
  160. print
  161. prnum
  162. prnumclear
  163. puttext
  164. quake
  165. quakex
  166. quakey
  167. repaint
  168. resettimer
  169. rlookback
  170. rmenu
  171. rmode
  172. rnd
  173. rnd2
  174. roff
  175. savedir
  176. savefileexist
  177. savegame
  178. savename
  179. savenumber
  180. saveoff
  181. saveon
  182. savetime
  183. select
  184. selectbtnwait
  185. selectcolor
  186. selectvoice
  187. selgosub
  188. selnum
  189. setcursor
  190. setwindow
  191. setwindow2
  192. shadedistance
  193. skip
  194. skipoff
  195. soundpressplgin
  196. spbtn
  197. spfont
  198. spi
  199. spstr
  200. spwait
  201. stop
  202. stralias
  203. strsp
  204. sub
  205. systemcall
  206. tal
  207. texec
  208. textbtnwait
  209. textclear
  210. textgosub
  211. textoff
  212. texton
  213. textspeed
  214. time
  215. to
  216. transmode
  217. trap
  218. trap2
  219. underline
  220. versionstr
  221. vsp
  222. wait
  223. waittimer
  224. wave
  225. waveloop
  226. wavestop
  227. windowback
  228. windoweffect
  229. /C2"Functions" STYLE_FUNCTION
  230. *
  231. return
  232. /C3"Methods" STYLE_METHOD
  233. *define
  234. *start
  235. definereset
  236. game
  237. end
  238. reset
  239. /C4"Operators" STYLE_OPERATOR
  240. +
  241. -
  242. *
  243. /
  244. !
  245. < <=
  246. > >=
  247. = ==
  248. & &&
  249. /C5"Number Variables" STYLE_NUMBER_VARIABLE
  250. ** %
  251. /C6"String Variables" STYLE_STRING_VARIABLE
  252. ** $
  253. /C7"Array Variables" STYLE_ARRAY_VARIABLE
  254. ** ?
复制代码
江南莲子青如水,江北莲花香满烟
回复

使用道具 举报

36

主题

996

帖子

350万

积分

⑧专业

积分
3507413
发表于 2007-2-24 23:12:14 | 显示全部楼层
哦呀~难道是莲子哥哥~ [s:7]
飘过来支持下~
回复 支持 反对

使用道具 举报

1

主题

3

帖子

35

积分

②入门

积分
35
QQ
 楼主| 发表于 2007-2-25 12:27:31 | 显示全部楼层
引用第1楼sarah7072007-02-24 23:12发表的:
哦呀~难道是莲子哥哥~ [s:7]
飘过来支持下~
嗯,你是?
江南莲子青如水,江北莲花香满烟
回复 支持 反对

使用道具 举报

36

主题

996

帖子

350万

积分

⑧专业

积分
3507413
发表于 2007-2-25 13:25:18 | 显示全部楼层
水螅~
(这算不算版聊……)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|幻想森林

GMT+8, 2024-5-19 04:46 , Processed in 0.024649 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表