一、notepad  插件 / notepad   plugins
1、function list ( unicode ) 当前最新版本:version 2.1
发布日期:2010-02-18
安装程序下载地址: list/functionlist plugin v2.1/functionlist_2_1_uni_dll.zip/download
2、nppexec ( unicode ) 当前最新版本:version 0.4.1
发布日期:2010-07-22
安装程序下载地址: plugin v0.4.1/nppexec_041_dll_unicode.zip/download
二、安装环境 / environmentwindows2003 / windows xp
notepad  -5.8.5 (unicode版本)
三、notepad  插件安装 / notepad   - howto install plugins如何安装notepad  的插件,其凯发k8官网下载客户端中心官网原文如下:
usually, the only installation procedure plugins require is to
- place the dll in the plugins subfolder of the notepad   install folder; 
- place any configuration file it comes with in plugin\config 
- preferrably, place all documentation files in plugin\doc, or in some subfolder of it 
notepad   loads plugins at startup. to load a new plugin, you can either close and restart notepad  , or use the settings -> import -> import plugin command. the latter will copy the dll in the plugin folder if it is not already there. 
译文:
通常情况下,安装程序插件只需要执行如下方法:
- 将dll文件复制到notepad  安装目录的plugins目录下; 
- 将配置文件复制到plugins\config目录下; 
- 更好的做法,将所有的文档文件复制到plugins\doc目录下,或它的子目录下。
notepad  在启动的时候载入插件。要载入一个新插件,你可以关闭并重启notepad  ,或使用 setting -> import -> import plugin 命令。稍后将复制插件的dll到plugins目录下。
四、function list 插件安装 / howto install plugin "function list"1、下载并解压 。
2、将 functionlist.dll 复制到notepad   的 plugins 目录下。
3、将c  .flb、functionlistrules.xml、gmod lua.bmp 复制到 plugins\config 目录下。
4、重启notepad  。效果如下:
 
五、nppexec插件安装和配置 / howto install and configure plugin "nppexec"
1、nppexec安装。
- 下载并解压 。 
- 将 nppexec.dll 和目录nppexec 复制到notepad   的 plugins 目录下。 
- 将doc目录下的 fparser.html、nppexec.txt、nppexec_manual.chm、nppexec_manual.knt、nppexec_techinfo.txt 复制到 plugins\doc\nppexec 目录下。 
- 重启notepad  。
2、nppexec配置。
1. 打开菜单 plugins -> nppexec -> execute...。
 2. 配置编译c文件。
2. 配置编译c文件。进入“execute...” 对话框,输入 cmd /c "gcc -o $(current_directory)$(name_part) $(full_current_path) ",点击“save...”按钮保存,命名为“compilec”。
 
3. 配置编译c  文件。
 进入“execute...” 对话框,输入 cmd /c "g   -o $(current_directory)$(name_part) $(full_current_path) ",点击“save...”按钮保存,命名为“compilec  ”。
 
4、将“compilec”,“compilec  ”添加到宏菜单(macros)下。
1)打开菜单 plugins -> nppexec ->advanced options...。
 
2)在associated script:下面下拉框中选择“compilec”,“compilec  ”,点击“add/modify”按钮将它们依次添加到menu items下面的列表中。
选择 "place to the macros submenu"复选框。
 
3)打开菜单 macro ,可以看到“compilec”,“compilec  ”都已经添加到宏菜单(macros)下。  
5、编译c语言helloworld程序 。
1)输入helloworld.c 的源代码:
#include 
void print() {
    printf ("hello world!\n");
}
main() {
    print();
    
    return 0;
}
2)点击菜单 macro -> compilec,执行效果如下图所示。
在与helloworld.c 相同的目录下生成了一个 hellowrold.exe 文件。
 
说明:如果编译的 *.c文件的路径中包含了空格,在执行“compile c”命令时将报错。
六、notepad   开启自动联想提示 / notepad   - enable autocompletion
1、打开菜单 settings -> preferences...。
2、点击 backup/auto-completion 选项卡。
     选择 enable auto-completion on each input.
     选择 world completion。
     选择 function parameters hint on input
3、在编辑区域中,输入内容,自动联想提示功能效果如下图所示。
 
参考来源 
                                     
            
            
              
              阅读(1977) | 评论(0) | 转发(0) |