Using Notepad++ To Quickly Format XML
2014-03-05 15:57
477 查看
http://geek.sylvainw.com/2010/03/28/using-notepad-to-quickly-format-xml/
My favorite way to quickly format a given chunk of XML is to use Notepad++ and the XML Tools plugin. You can get Notepad++ here. And the XML Tools plugin is here(you’ll have to wait a few seconds before the download starts).
1) Choose your language:
2) Click Next:
3) Agree to the License Agreement:
4) Choose where you want to install the files:
5) Choose what options you want to install (I simply use the defaults):
6) Choose the final set of options. I check the first one because I like having applications keep their data in their own installation directory:
7) Click Install:
8) Click Finish and you’re done!
Under Settings | Preferences:
On the “General” tab, I check “Show close button on each tab”.
On the “MISC.” tab, I uncheck “Remember current session for next launch” because I always want Notepad++ to open with a new blank document.
1) Download the XML tools from here.
2) Unzip the file and copy the XMLTools.dll to the Notepad++ plugins folder (in the example above: C:\Program Files (x86)\Notepad++\plugins):
3) Re-start Notepad++ and you should now see the XMLTools appear in the Plugins menu:
When you click on “How to use…” you’ll get the following:
4) I’ve just tried (2011/10/20) following those links and the first one doesn’t work and the 2nd one just takes you to a directory listing. So, I’ve uploaded the zip file to my site and you can download the missing lib files from here.
5) Unzip the ext_libs.zip file and then copy the unzipped DLLs to the Notepad++ installation directory (in the example above: C:\Program Files (x86)\Notepad++):
6) Re-start Notepad++ and you should finally see the proper XML Tools menu:
The feature I use the most is “Pretty print (XML only – with line breaks)”. This will format any piece of XML with all the proper line spacing.
Start with:
After doing Ctrl+Alt+Shift+B:
Sweet!
My favorite way to quickly format a given chunk of XML is to use Notepad++ and the XML Tools plugin. You can get Notepad++ here. And the XML Tools plugin is here(you’ll have to wait a few seconds before the download starts).
Installing Notepad
(the following instructions are based on Notepad++ v5.9.4 and my differ in later versions)1) Choose your language:
2) Click Next:
3) Agree to the License Agreement:
4) Choose where you want to install the files:
5) Choose what options you want to install (I simply use the defaults):
6) Choose the final set of options. I check the first one because I like having applications keep their data in their own installation directory:
7) Click Install:
8) Click Finish and you’re done!
Settings In Notepad++
There are a few settings that I always set that (I find) make life more convenient (but that’s just me).Under Settings | Preferences:
On the “General” tab, I check “Show close button on each tab”.
On the “MISC.” tab, I uncheck “Remember current session for next launch” because I always want Notepad++ to open with a new blank document.
Installing the XML Tools
If you run Notepad++ and look in the Plugins menu, you’ll see that the XML Tools aren’t there:1) Download the XML tools from here.
2) Unzip the file and copy the XMLTools.dll to the Notepad++ plugins folder (in the example above: C:\Program Files (x86)\Notepad++\plugins):
3) Re-start Notepad++ and you should now see the XMLTools appear in the Plugins menu:
When you click on “How to use…” you’ll get the following:
4) I’ve just tried (2011/10/20) following those links and the first one doesn’t work and the 2nd one just takes you to a directory listing. So, I’ve uploaded the zip file to my site and you can download the missing lib files from here.
5) Unzip the ext_libs.zip file and then copy the unzipped DLLs to the Notepad++ installation directory (in the example above: C:\Program Files (x86)\Notepad++):
6) Re-start Notepad++ and you should finally see the proper XML Tools menu:
The feature I use the most is “Pretty print (XML only – with line breaks)”. This will format any piece of XML with all the proper line spacing.
Start with:
After doing Ctrl+Alt+Shift+B:
Sweet!
相关文章推荐
- add Windows build environment-mingw to qt5.2.1 on ubuntu(AMD64)
- JSP版(utf8编码)的Ueditor百度文章编辑器配置以及使用说明
- hadoop note-(no map&reduce sequencefile)
- APUE--信号1(自己的补充)
- QMYSQL3: Unable to bind value
- IOS6 UIImagePickerController在IPAD横屏闪退解决办法
- UILocalNotification实现本地的闹钟提醒的方法
- windows phone (16) UI变换 下
- windows phone (15) UI变换上
- OpenUI5 - SAP开源中的移动大战略
- ui设计网站
- /usr/bin/gitk: 第 3 行:exec: wish: 未找到
- 6.6 Executing Non-UI Related Tasks Synchronously with GCD
- C# 創建彈出式菜單(ToolStripMenuItem)
- 4.流程控制语句
- SkyGlue—用GA标记用户生成点击流
- android多线程handler+runOnUithread+view.post+handler.post
- error: no such partition grub rescue
- hdu 1004 shui
- UIView autoresizingMask