前幾天學習 PL/SQL 時為找好用編輯器煩惱,SQL*Plus 太麻煩,記事本太落後,大型工具又像殺雞用牛刀,最終選 UltraEdit 編寫 PL/SQL,但預設不支援 PL/SQL 關鍵字高亮,幸好網上找到配置方法。
平時寫 Struts 代碼,除 JBuilder 等大型工具外,其他工具不支援 Struts 類庫關鍵字高亮。後來參照配置 PL/SQL 的方法成功設定,但 UltraEdit 編寫 Java、JSP、Servlet、Struts 仍不便。心想 JCreator 能否像 UltraEdit 一樣擴展關鍵字?找到方法如下:
java.syn 位於 D:\Program Files\Xinox Software\JCreatorV3\Syntax 目下(視安裝路徑而定)。<keyWord_list3/>、<keyword_list4/> 等標籤。<keyword_list3/> 改為:
<keyword_list3>
《此處添加 Struts 等所需關鍵字》
</keyword_list3>
<word>AddTagParent</word> <word>AppException</word> <word>ApplicationConfig</word> <word>AttributeDefinition</word> <word>AttributeToScopeTag</word> <word>BaseFieldTag</word> <word>BaseHandlerTag</word> <word>BaseInputTag</word> <word>BaseTag</word> <word>BufferedMultipartInputStream</word> <word>ButtonTag</word> <word>CancelTag</word> <word>CheckboxTag</word> <word>CommonsMultipartRequestHandler</word> <word>CommonsFormFile</word> <word>CompareTagBase</word> <word>ComponentConstants</word> <word>ComponentContext</word> <word>ComponentDefinition</word> <word>ComponentDefinitionsFactory</word> <word>ComponentDefinitionsFactoryWrapper</word> <word>ConditionalTagBase</word> <word>ConfigHelper</word> <word>ConfigHelperInterface</word> <word>ConfigRuleSet</word> <word>Constants</word> <word>Content</word> <word>ContentLengthExceededException</word> <word>ContentMap</word> <word>ContentMapStack</word> <word>Controller</word> <word>ControllerConfig</word> <word>ControllerSupport</word> <word>CookieTag</word> <word>CookieTei</word> <word>DataSourceConfig</word> <word>DefaultModuleConfigFactory</word> <word>DefineTag</word> <word>DefineTei</word> <word>DefinitionAttribute</word> <word>DefinitionDispatcherAction</word> <word>DefinitionNameAttribute</word> <word>DefinitionsFactory</word> ...(更多關鍵字省略)