Notepad++手冊(cè)_第1頁
Notepad++手冊(cè)_第2頁
Notepad++手冊(cè)_第3頁
Notepad++手冊(cè)_第4頁
Notepad++手冊(cè)_第5頁
已閱讀5頁,還剩26頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、notepad+手冊(cè)版本 :1.0作者: gyhong日期: 2008 年 11 月包含內(nèi)容目錄綱要編輯跟進(jìn)1. 超酷編輯工具1.1. 功能介紹資料來源你官方網(wǎng)址http:/notepad-notepad+ 是在微軟視窗環(huán)境之下的一個(gè)免費(fèi)的代碼編輯器。為了產(chǎn)生小巧且有效率的代碼編輯器,這個(gè)在gpl 許可證下的自由軟體開發(fā)專案採用win32 api 和 stl以 c+ 程式語言撰寫成,並且選用功能強(qiáng)大的編輯模組scintilla 。藉由加強(qiáng)與優(yōu)化許多函數(shù)及演算法,notepad+ 致力於減少世界二氧化碳的排放。當(dāng)使用較少的cpu 功日期標(biāo)題名稱備注2008.11.04日期標(biāo)題名稱備注計(jì)劃梳理資料

2、完成 php 擴(kuò)展功能測試率,降低電腦系統(tǒng)能源消耗,notepad+ 間接造就了綠化的環(huán)境。多虧它的輕巧與執(zhí)行效率,notepad+ 可完美地取代微軟視窗的記事本。這個(gè)軟體開發(fā)專案已臻於成熟階段,然而目前只有一個(gè)人從事軟體開發(fā)與維護(hù)的工作,瑕疵是無法避免的。如果你有任何關(guān)於notepad+ 的建議,歡迎來信與我聯(lián)繫,但我不保證你的提議一定會(huì)被採用。希望你使用notepad+ 就像我開發(fā)它一樣充滿樂趣。notepad+ 的主要功能:語法高亮度顯示及語法摺疊功能支援的程式語言:cc+ javac#xmlhtmlphp css makefile ascii art (.nfo)doxygen ini

3、 filebatch file javascriptasp vb/vbssqlobjective-crc resourcefilepascalperl pythonlua textclassemblerrubylisp schemepropertiesdiff smalltalk postscriptvhdlada camlautoitkixtartmatlabveriloghaskellinnosetupcmakeyaml列印所見即所得(wysiwyg)如果你有彩色印表機(jī),你可以把你的原始碼以多種顏色列印出來。用戶自定程式語言用戶可自定程式語言:自定的程式語言不僅有語法高亮度顯示功能,而且有

4、語法摺疊功能功能。註解關(guān)鍵字及運(yùn)算符號(hào)亦可自定。詳情請(qǐng)參考用戶自定程式語言線上輔助( 畫面一 , 畫面二 , 畫面三 , 畫面四)。字詞自動(dòng)完成功能(auto-completion)用戶能做自己的api 列表 (或從下載專區(qū)下載你需要的api 檔案 ) 。一旦 api 檔案建立完成且在正確的路徑系統(tǒng),鍵入 ctrl+space(你可以修改這個(gè)鍵盤捷徑)啟動(dòng)字詞自動(dòng)完成功能(參考字詞自動(dòng)完成功能畫面)。 欲知更詳盡的資訊,請(qǐng)參考字詞自動(dòng)完成功能線上輔助。支援同時(shí)編輯多重文件你可以同時(shí)開啟多頁面來編輯。支援多重視窗同步編輯用戶可同時(shí)有兩個(gè)視窗對(duì)比排列。你不但能開啟兩個(gè)不同文件在分別兩個(gè)不同的視窗內(nèi)

5、(畫面 ), 並且能開啟一個(gè)單獨(dú)文件在兩個(gè)不同的視窗內(nèi)(clone mode)進(jìn)行同步編輯。 同步編輯的成果將在兩個(gè)的視窗內(nèi)同時(shí)更新。請(qǐng)參考同步編輯畫面。支援 regular expression 搜尋及取代用戶可用regular expression 來搜尋及取代一個(gè)字串。完全支援拖曳功能你可用拖曳功能來開啟文件。你也可以用拖曳功能來變換開啟文件的位置。你甚至可拖曳開啟文件從一個(gè)視窗到另一個(gè)視窗。內(nèi)部視窗位置可任意移動(dòng)請(qǐng)參考畫面 .自動(dòng)偵測開啟檔案狀態(tài)如果外部修改(或刪除 )notepad+已開啟檔案,用戶將會(huì)被通知更新檔案內(nèi)容(或移除檔案 )。放大與縮小功能不需要多做介紹,畫面將說明一切。

6、支援多國語言支援中日韓視窗環(huán)境,及阿拉伯語與希柏來文的視窗環(huán)境。請(qǐng)參考notepad+ 在中文視窗下,阿拉伯語視窗下以及希柏來文視窗下的畫面。書籤用戶可用滑鼠點(diǎn)擊書籤邊行(書籤邊行位於列數(shù)邊行右方)或使用鍵盤捷徑ctrl+f2 來標(biāo)明或移除書籤。使用鍵盤捷徑f2 到下一個(gè)書籤或shift+f2 到上一個(gè)書籤。 如欲清除所有書籤, 使用選單尋找 -清除所有書籤。請(qǐng)參考畫面 .高亮度括號(hào)及縮排輔助當(dāng)插字游標(biāo) (caret)移至下列字元 ( )旁側(cè)時(shí) , 此字元與遠(yuǎn)方相對(duì)應(yīng)的字元以及縮排輔助(如果存在的話 )將會(huì)以高亮度來顯示。請(qǐng)參考畫面一, 畫面二。巨集用戶可儲(chǔ)存數(shù)百個(gè)巨集指令,並分配予鍵盤捷徑。

7、1.2. 功能合面觀2. 基本功能2.1. 環(huán)境設(shè)置2.1.1.基礎(chǔ)環(huán)境設(shè)置2.1.2.快捷鍵設(shè)置常用快捷鍵介紹2.1.3.函數(shù)輔助輸入功能http:/notepad- pluginsapis 目錄下已有文件實(shí)例如下:2.2. 基礎(chǔ)操作2.2.1.最常用快捷功能2.2.2.宏的使用功能說明:將操作過程錄下來,然后可多少執(zhí)行2.2.3.編輯功能快速編輯基礎(chǔ)要素?定位:能夠通過鍵盤快速定位到所操作位置?搜索:支持正則表達(dá)式功能?標(biāo)簽:設(shè)置標(biāo)簽,實(shí)現(xiàn)快速定位?刪除:快速刪除行,單詞,至某個(gè)條件,刪除特定單詞或行?插入:插入列等?緩沖區(qū)功能:支持粘多貼板功能,能夠快速選擇想要內(nèi)容進(jìn)行粘貼

8、.選擇內(nèi)容后,右銉,看一看字母大小寫轉(zhuǎn)換等等功能.單詞自動(dòng)補(bǔ)全ctrl+shift+j功能說明:當(dāng)前編輯中單詞,自動(dòng)補(bǔ)全注意:quicktest插件,也是一個(gè)類似的功能,但需要先配置好標(biāo)簽,詳見插件介紹.復(fù)制當(dāng)前行ctrl+d.單詞大小寫轉(zhuǎn)換ctrl+shift+u/ctrl+u.查找 ctrl+f支持正則表達(dá)式支持多文件搜索功能,非常好用有相當(dāng)于grep 的功能.替換 ctrl+h支持正則表達(dá)式3. 實(shí)用插件下載地址: http:/ 右鍵菜單插件 nppcm.安裝辦法:將該插件解壓到notepad+.exe 相同目錄下,然

9、后運(yùn)行reg.bat 則可使用辦法:選擇文檔文件會(huì),右鍵,會(huì)多出來如下選擇菜單選項(xiàng).ftpftp 插件3.3. 我喜歡插件設(shè)置一些常用鏈接,方便快速運(yùn)行其它工具或打開文件等3.4. 粘貼板工具使用方法: ctrl+v 復(fù)制三段不同內(nèi)容。 。 。 。然后按ctrl-shift-v則能調(diào)出如下菜單,3.5. 超強(qiáng)編輯插件 textfx一堆菜單,慢慢研究吧。好東東來的。有行排序,轉(zhuǎn)換為html格式,刪除文檔空行等等3.5.1.加速文檔編輯的快捷鍵一句話:記錄這些非常有用。如果不明白意思,那有查一查一直留著vi 這個(gè)工具,因?yàn)槭煜て淇旖萱I操作,確實(shí)是其它工具不可比擬。3.6. 超強(qiáng)命令工

10、具 eppexec有自己的內(nèi)部命令集,支持調(diào)用其它工具方便編譯程序等.6.1.phpphp 編譯配置說明: $(full_current_path)是 nppexec 支持的內(nèi)部環(huán)境變量.6.2.pythonpython 編譯配置3.6.3.幫助文檔* nppexec plugin ver. 0.2.5 for notepad+ 4.3 (andabove)* by dv, december 2006 - july 2007* by dv & nicolas babled & geert vancompernolle, july 2007 - aug

11、ust 2008* possibilities:*1) run multiple commands from the execute. dialog*2) run stand-alone command from the console dlg*3) separateconsole for eachnppexec.dll (e.g. nppexec1.dll, nppexec2.dll)*4) additional commands:*cls - clear console screen*cd - shows current path*cd - changescurrent directory

12、 (absolute or relative)*cd - changescurrent drive anddirectory*dir - lists subdirs and files*dir - lists subdirs and files matched the mask*dir - lists subdirs and files matched the mask*echo - prints a text in the console*set- shows all usersvariables*set - shows the value of usersvariable *set = -

13、 setsthe value of usersvariable *unset - removes usersvariable *inputbox message - shows inputbox, sets$(input)*inputbox message : initial_value - inputbox, sets$(input)*con_loadfrom - loads a files content to the console*con_load - seecon_loadfrom*con_saveto - savesthe consoles content to a file*co

14、n_save- seecon_saveto*sel_saveto - savethe selected text to afile*sel_saveto : - savethe selected text to a file*sel_save : - seesel_saveto*npp_exec - execute commands from specified script*npp_exec - execute commands from specified file(*)*npp_close - close current file in notepad+*npp_close - clos

15、e specified file openedin notepad+(*)*npp_open - open a file in notepad+*npp_open - open files matched the mask*npp_open - openfiles matched the mask*npp_run - run external process/command*npp_save- savecurrent file in notepad+*npp_save - savea file in notepad+ (if its opened)(*)*npp_saveall- saveal

16、l modified files*npp_switch - switch to specified openedfile(*)*(*) these commands work with a partial file path/name also*i.e.npp_savec:dirf.txtis the sameasnpp_savef.txt*5) additional console commands (console dlg only):*help- show available commands*ver- show plugins version*ctrl+c- terminate cur

17、rent child process*ctrl+break- terminate current child process*6) all notepad+ environment variables aresupported:*$(full_current_path): e:my webmainwelcome.html*$(current_directory): e:my webmain*$(file_name): welcome.html*$(name_part): welcome*$(ext_part): html*$(npp_directory): the full path of n

18、otepad+s directory*$(current_word): word(s) you selectedin notepad+*$(current_line): current line number*$(current_column): current column number*7) additional environment variables:*$(#0): c:program filesnotepad+notepad+.exe*$(#n), n=1,2,3.: full path of the nth openeddocument*$(left_view_file): cu

19、rrent file path-name in primary (left) view*$(right_view_file): current file path-name in second(right) view*$(argc): number of arguments passedto the npp_exec command*$(argv): all arguments passedto the npp_exec command after the script name*$(argv0): script name - first parameter of the npp_exec c

20、ommand*$(argvn): nth argument (n=1,2,3.)*$(rargv): all arguments in reverseorder (except the script name)*$(rargvn): nth argument in reverseorder (n=1,2,3.)*$(input): this value is setby the inputbox command*$(inputn): nth field of the $(input) value (n=1,2,3.)*$(sys.): systems environment variable,

21、 e.g.$(sys.path)*history*v0.2.5 - august 2008-+ added: word wrap in the console dialog (ctrl+w)* changed: advanced options dialog - savecmdhistory added,richedit_maxtextlengthremoved- fixed: script with spacesin its name was not startedusingassociatedmenu item+ someimprovements+ new command: npp_clo

22、se+ new command: inputbox* now nppexec usesrich edit 2.0 (instead of 1.0) in its console window+ addednotepad+s variables: $(current_line),$(current_column)+ external plugin interface messages:npem_getverdwordreturns version asdwordnpem_getverstrreturns version asstringnpem_getstate returns state: r

23、eady/busynpem_print prints text which can be highlighted by the highlight filtersnpem_executeexecutes given commandsnpem_nppexec executes script/filenpen_result asa result of npem_executeor npem_nppexecv0.2.4 - june2008-+ added: replace tab in the console filters dialog* improved: the code of the dl

24、gconsoleoutputfilterhasbeenrewritten+ added: console text andbackground colours can bechanged+ new command: sel_saveto - savesthe selectedtext to a file- fixed: con_saveto did not work under windows 9x+ added: ability to execute specified script when notepad+ starts/exits+ added: ability to assigna

25、menu item to specified script(then you can assigna shortcut key to this menu item in notepad+)+ added:advanced options dialog+ other improvementsv0.2 rc3.2 - february 2008- fixed: npp_run (shellexecute) did not work with several argumentsv0.2 rc3.1 - february 2008- fixed: buffer overflow in the warn

26、ing analyzer* changed: now npp_run calls shellexecute() insteadof winexec()v0.2 rc3 - january2008-+ searchin the console+ history in the console filters dialog+ severalissuesfixed+ severalcosmetic improvementsv0.2 rc2 - december 2007-+ speedingup the console output+ watching for changesin npes_saved

27、.txt+ tab-key in the console auto-completes current command+ severalcosmetic improvementsv0.2 rc1 - december 2007-1. a lot of internal changes/improvements.in particular, now all plugins options are stored, readandwritten by theoptions manager component.the warning analyzer component, developedby ni

28、colas babled, allows to filterandrecognize different compiler/interpretter error andwarning messages- andextract useful information from thesemessages(such asfile name andlinenumber).the simple logger component storesdetailed information about lastexecutedcommand (can be usefull for debugging).* the

29、 console redirecting engine hasbeenimproved.* now the plugin identifies itself by its dll-file name. each copy of theplugin (each dll-file) stores its options in corresponding ini-file.* now plugins environment variables (e.g. $(file_name)areavailable forchild console process.for example, start cmd.

30、exe andtype echo $(#1).* now systemsenvironment variables are available in a form of $(sys.)e.g. $(sys.windir),$(sys.temp)etc.* now the npp_exec command can passarguments to the script. these argumentscanbe accessedin the script through thefollowingmacro-variables:$(argc), $(argv), $(argvn).example:

31、npp_exec script name param_1 param 2.this example setsthe following values for the script:$(argc) = 3;$(argv) = param_1 param 2;$(argv0)= script name;$(argv1)= param_1;$(argv2)= param 2.* each command now havedetailed help information. type help or help helpin the nppexecs console.* now the console

32、commands history is restoredwhen you restartnotepad+.2. new menu items:direct execute previous - directly executesprevious script.no internal messages- do not show such messagesasprocess started, etc.saveall files on execute- savesall files before executing a script.also nppexecs toolbar icon hasbee

33、nadded.3. new dialog:console output filter - highlight.this dialog allows you to specify a string mask for compiler/interpretter errorandwarning messageswith such keywords as%file%, %absfile% and%line%.thesemessagescan behighlighted with different colours andallow you to goto certain line in certain

34、 file when double-clicked in the console window.4. new messages:npp_saveall- savesall modified files.con_loadfrom- loads afiles content to the console.con_saveto - savesthe consoles content to a file.echo - prints atext in the console (supports internal env. variables)set - setsthe value of usersvar

35、iableunset - removes usersvariablev0.2 beta4 - july 2007- fixed: buffer size was not checkedbefore calling oemtochar()- fixed/added: b andr handling+ alot of changesin plugins internals (basic cpp-classesandnppexecengine)+ new command: cd,cd , cd + new command: dir, dir , dir + new feature: npp_open

36、 , npp_open + new environment variables: $(left_view_file)and$(right_view_file)* thanks to all who wait for this versionv0.2 beta3 - april 2007- fixed: delete button (script name dialog) was not enabledsometimes+ menu: show console dialog+ console output filter: exclude all empty lines+ comment deli

37、miter can beuser-defined, / in :/ is no more commentv0.2 beta2 - march 2007-+ menu: console commands history.when enabled, previous commands can be scrolled by pressingarrow keys up anddown.+ menu: console output filter.when enabled, output messagesfrom running console processcan be filtered (i.e. p

38、articular lines can be excluded)- consoledlg: ctrl+a is unlocked- consoledlg: quotes are no more addedautomatically for pathswith spaces(becauseof a bug with executablesw/o extensionsuch ascmd /c calc.exe)- several internal fixes- several additional internal fixes :-)* thanks to jim granville for hi

39、s suggestions3.6.4.編輯輔助代碼3.7. 代碼高亮格式復(fù)制 /轉(zhuǎn)換 nppexport功能說明:在notepad+中怎么顯示(帶有色彩) 如選擇 copy rtf to clipboard 然后在 word 中粘貼,則仍然顯示帶有色彩高亮顯示3.8. 資源管理器 explorer3.9. 方檔比較工具 compare功能說明:用顔色高亮顯示出文檔間的差別3.10. 編程工具3.10.1.webedit3.10.2.輔助快速輸入插件quicktest功能說明:如上定義php 語言的標(biāo)簽if編輯文檔時(shí)輸入if 然后選擇當(dāng)前行選擇菜單:replace tag看一看,已經(jīng)被替換成定義

40、好的內(nèi)容3.10.3.函數(shù)顯示功能說明:自動(dòng)搜索程序,顯示函數(shù)名,方便編程快速定位函數(shù)3.10.4.文檔處理腳本工具simple script功能說明:可參考所帶實(shí)例。處理文檔有時(shí)非常實(shí)用,自帶有函數(shù),直接調(diào)用則可。3.10.5.取顔色工具 color picker4. 技巧專題.phpphp 增強(qiáng) notepadd+ 處理文檔功能4.1.1.環(huán)境配置?安裝 nppexec 插件?php 編譯組件nppexec 配置如下:配置好后,通過默認(rèn)f6 按鍵,可以直接編譯當(dāng)前正在編輯的php 文件是不是很方便實(shí)用呢當(dāng)然這并不是我很要講的目的,下面要講的是,寫好一些常用的php 處理代碼,

41、通過類似方法,調(diào)用這些代碼處理當(dāng)前正在編輯的文檔,如:實(shí)現(xiàn)類似awk 的功能,方便的處理列數(shù)據(jù)4.1.2.功能實(shí)現(xiàn)一例簡要說明:通過nppexec 插件內(nèi)置函數(shù)功能,inputbox 得到輸入所要參數(shù)(分隔符,顯示字段)然后通過其另外一個(gè)執(zhí)行外部命令調(diào)用php.exe 執(zhí)行 php 腳本在 nppexec 控制臺(tái)上得到結(jié)果,通過nppexec 另外一個(gè)函數(shù)將內(nèi)容保存為文件,再將文件找開,也即得了處理后的結(jié)果php 處理腳本如下:nppexec 腳本如下:4.2. 不一樣的查找功能ctrl+f 打開查找功能,選擇“正則表達(dá)式”應(yīng)用:查看防火墻配置快速查看選擇策略應(yīng)用情況編輯中,查看函數(shù)應(yīng)用情況4

42、.3. 通過 nppexec使用 securecrtsecurecrt 是目前使用最為廣泛的網(wǎng)管登錄工具,支持telnet,ssh等最為特色,支持內(nèi)置腳本(vbscript 腳本 )能夠方便實(shí)用expect 功能說明: vbscript 是 windows 系統(tǒng)自帶功能,功能強(qiáng)大,能夠方便調(diào)用office ,數(shù)據(jù)庫等.3.1.crtcrt log 保存變量對(duì)應(yīng)說明%h - hostname%s - sessionname%y - four-digit year%m - two-digit month%d - two-digit day of the month%h - two-d

43、igit hour%m - two-digit minute%s - two-digit seconds% - percent(%)%envvar% - environment variable.3.2.notepad+notepad+配置命令行如下:d: gyhsecurecrtsecurecrt.exe/ titlebarnotepad+/ nomenu/ notoolbar/ script$(full_current_path)說明: /titlebar表示程序標(biāo)題/nomenu 表示不顯示菜單/notoolbar表示不顯示快捷圖標(biāo).3.3.crtcrt 連接

44、命令行配置實(shí)例.example1:the following example opens a connection to the my company sessionin the specified position:securecrt.exe/pos 100 50 /s my company.example2:the followingexample creates an ssh2 connection to the remote machine named myssh2server.myisp.com. itusesthe username myusername

45、 to begin the logon process. it also specifies the cipher to use as twofish, and themac to use asmd5. in addition, port forwarding the concept of connecting a logical port on a local machine to aport on aremote machine over a secure(encrypted) channel. all requestsfor servicessent to the local port

46、are thenforwarded acrossthe secure channel to the corresponding port on the remote machine. is set up with the remotemachine , instructingthe local machine to listen for imaprequests on port 8143 (localmachine):securecrt.exe /ssh2/lmyusername /ctwofish/mmd5/local8143:143myssh2server.myisp.com

47、.example3:the followingexample connectsto using the ssh1 protocol specifying the username bob, thelocation of an identity containing a private rsa key andthe blowfish cipher:securecrt.exe/ssh1 /l bob /i c:securecrtrsaidentity.pri/c blowfish .example4:the followingexample connects to using the

48、 ssh2 protocol,username bob,level4compression, and sets up port forwardingof connections fromport 555 on the localhost (the pc runningsecurecrt) to port 6666 on :securecrt /ssh2 /l bob /z 4 /local555:6666 .crt 腳本實(shí)例#$language= vbscript#$interface= 1.0optionexplicitfunctionmysubstring( srcstrin

49、g, bchar , echar )dimfindex, sindexfindex=instr( srcstring, bchar )sindex=instrrev( srcstring, echar )mysubstring=mid ( srcstring, findex+1, sindex- findex- 1)endfunction 用來得到一個(gè)時(shí)間字符串,該字符串用來設(shè)置路由器的時(shí)間和日期functionciscodate()dimem,y , m, d, hdimnowdatenowdate =now()em=array( january, february, march, april, may , june, july, august, september, october, november, december)y=year ( nowdate

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論