NotePad++ 编辑NCL 代码,实现自动补全和高亮颜色
本来http://www.ncl.ucar.edu/Applications/editor.shtml上有,但文件内容不全,我自己改了一些
由于不知道怎么上次XML 附件,XML 文件 请在楼主资源文件中下载
资源地址:http://download.****.net/download/xszfy0133/9985628
设置自动补全
-
Download the AutoComplete.xml file, rename it to "NCL.xml", and put it into thecorrect position, for example "D:\ProgramFiles\Notepad++\plugins\APIs\", and you will also find there are manyother ".xml" files there.
-
From the menu bar, selectSettings -> Preferences -> Auto-Completion
-
Check the "Enableauto-completion on each input", "Function and word completion","Function parameters hint on input", "()",""
4. Restart notepad++
设置高亮
-
From the menu bar select Language-> Define Your Language
-
Click the Import... button,import style.xml
网上没找到全的高亮文件,这是我根据自动补全里面的函数等添加的一个比较全的高亮显示文件,如有不对的还请指正。
-
Select the XML file you'd liketo use on the disk
-
Restart Notepad++
选择对应的自定义语言
注意
设置自动补全时的文件名必须和语言选择的名字完全匹配,如果不匹配,请修改如下:语言->自定义语言格式->重命名