首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式碼之家 >> 編程語言 >  >> Java 程式設計 >> Java 程式設計入門

開發工具配置筆記:JCreator 設定 Struts 類名高亮顯示

     編輯:Java 程式設計入門

前幾天學習 PL/SQL 時為找好用編輯器煩惱,SQL*Plus 太麻煩,記事本太落後,大型工具又像殺雞用牛刀,最終選 UltraEdit 編寫 PL/SQL,但預設不支援 PL/SQL 關鍵字高亮,幸好網上找到配置方法。

平時寫 Struts 代碼,除 JBuilder 等大型工具外,其他工具不支援 Struts 類庫關鍵字高亮。後來參照配置 PL/SQL 的方法成功設定,但 UltraEdit 編寫 Java、JSP、Servlet、Struts 仍不便。心想 JCreator 能否像 UltraEdit 一樣擴展關鍵字?找到方法如下:

  1. 檔案位置:java.syn 位於 D:\Program Files\Xinox Software\JCreatorV3\Syntax 目下(視安裝路徑而定)。
  2. 編輯檔案:建議用 UltraEdit 開啟(好處多)。
  3. 尋找關鍵字區塊:搜尋 <keyWord_list3/>、<keyword_list4/> 等標籤。
  4. 修改標籤:將 <keyword_list3/> 改為:
    <keyword_list3>
        《此處添加 Struts 等所需關鍵字》
    </keyword_list3>
  5. 加入 Struts 關鍵字:以下為整理好的 Struts 關鍵字,直接加入即可。若無法使用可來信索取完整檔案 (cxh3905@163.com)。
    <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>
    ...(更多關鍵字省略)
  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式碼之家 All Rights Reserved