首页 > Web开发 > 详细

notepad++插件实现json、xml格式化

时间:2018-05-09 12:49:29      阅读:256      评论:0      收藏:0      [点我收藏+]

  notepad++比较出色的免费的数据编辑、格式化工具。。。

现在json、xml文件很流行、格式化也是必须的,方便查看关键信息!

01、下载notepad++及相关插件

npp_7.5.5-x86:   

https://files.cnblogs.com/files/xiaochina/npp_7.5.5-x86.zip

npp-json:               

https://files.cnblogs.com/files/xiaochina/NPPJSONViewer1_19vFix.zip

npp-xml:                

https://files.cnblogs.com/files/xiaochina/XmlTools2.4.9.2Unicode.zip

注意:版本都是win-32位的

02、安装插件

json安装到notepad++的plugin目录下

1. Paste the file "NPPJSONViewer.dll" to Notepad++ plugin folder
2. open a document containing a JSON string
3. Select JSON fragment and navigate to plugins/JSON Viewer/show JSON Viewer or press "Ctrl+Alt+Shift+J"
4. Viola!! if the JSON is valid, it will be shown in a Treeview

xml安装dependencies/下dll安装到notepad++根目录,XMLTools.dll安装到plugin目录下

XMLTools 2.4.x installation
---------------------------

1. stop notepad++
2. replace XMLTools.dll in npp plugins subfolder
3. only if version 2.3.x or earlier is already installed, then remove
   following files from npp main folder:
    - iconv.dll
    - libxml2.dll
    - libxslt.dll
    - zlib.dll
4. copy new external dll either into npp main folder (same folder than
   "notepad++.exe") or in %appdata%\Notepad++ folder:
     - libcurl.dll
     - libiconv-2.dll
     - libwinpthread1-dll
     - libxml2-2.dll
     - libxslt-1.dll
     - zlib1.dll

After installation in npp main folder, you should have following structure:

  [NPP_ROOT_FOLDER]
   ¦   notepad++.exe
   |   libcurl.dll
   ¦   libiconv-2.dll
   ¦   libwinpthread-1.dll
   ¦   libxml2-2.dll
   ¦   libxslt-1.dll
   ¦   zlib1.dll
    +---[plugins]
           XMLTools.dll

03、运行截图

技术分享图片

notepad++插件实现json、xml格式化

原文:https://www.cnblogs.com/xiaochina/p/9013215.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!