最後更新: 2019-01-09
目錄
- Show tab characters
- 內置功能
- Configure Files
- Column mode (Selection/Insert)
- 右鍵選單 (contextMenu.xml)
- Run external tools
Plugin
Show tab characters
View > Show Symbol > Show White Space and TAB
內置功能
dos2unix: Edit > EOL Conversion
Configure Files
mandatory xml files:
- config.xml: the GUI and MISC settings are stored in this file.
- langs.xml: all the keywords of supported languages to be highlighted are in this file.
- stylers.xml: all the syntax highlighting (colours, fonts, etc...) are saved in this file.
optional xml files:
- contextMenu.xml: the configure file of Notepad++ context menu.
- session.xml: the file which contains the list of full file path name of previous session.
- shortcuts.xml: this file cotains all the recorded macro, user defined commands and remapped shortcuts information.
- userDefineLang.xml: localization file.
- doLocalConf.xml: a zero length file which is use to determinate where Notepad++ loads the xml files.
-
asNotepad.xml: a zero length file which is use to make Notepad++ behaviour similar to MS Notepad
(ie. always open a file in a new instance with single document interface).
Column mode (Selection/Insert)
moure: Alt + left mouse click
keyboard: Alt + Shift + Arrow keys
右鍵選單 (contextMenu.xml)
By modifying this file, you can customize your context menu popuped as right clicking on the edit zone.
<Item MenuEntryName="Edit" MenuItemName="Cut"/> ... <Item id="選單項目的辨證碼">
Run external tools
Click: Menu -> Run
The 5 environment variables contain:
FULL_CURRENT_PATH: E:\my Web\main\welcome.html CURRENT_DIRECTORY: E:\my Web\main\ FILE_NAME: welcome.html NAME_PART: welcome EXT_PART: html
shortcuts.xml
<UserDefinedCommands> <Command name="Launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88"> firefox "$(FULL_CURRENT_PATH)" </Command> </UserDefinedCommands> ...
Key="88" # ACSII Code 來, 相當於 "X"
Offline install plugin
unzip plugin(*.dll) to C:\Program Files\Notepad++\plugins
Go to Notepad++ then : Settings -> Import -> Import plugin
Restart the notepad++.
Should see new plugin under the Plugins menu.
JSON-Viewer
https://github.com/kapilratnani/JSON-Viewer
Usage
1. Select JSON fragment
2. Hotkey: Ctrl+Alt+Shift+J
JSTool
reformat JSON
HEX-Editor
MIME-Tools
Converter
NppFTP
TextFX
Highlight all the text (CTRL+A)
Edit
line up multiple line by X
split line by X
trim tail spaces
Leading spaces to tabs / tabs to spaces
Tools
Sorting Text
XML tools
Install the XML tools from the
Plugins --> Plugin Manager --> show Plugin Manager
OR
https://sourceforge.net/projects/npp-plugins/files/XML%20Tools/
Hotkey: Ctl+Alt+Shift+B