1 Star 0 Fork 4

Notepad-- Community / NDD-JsonViewer

forked from Zh1an / NDD-JsonViewer 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

NDD-JsonViewer

介绍

该项目用于解决 NDD 软件的 JSON 格式化的插件。该项目是从 JSONViewer 项目移植的,目前仅支持 JSON 的格式化和行化,带有注释的 JSON 可以格式化或者行化,但是注释的保存与恢复;对于 JSON5,暂时仅支持部分解析。

编译流程

前提:

插件的编译说明请参考这里

该项目仅支持使用 CMakeqmake 编译。

CMake 编译

依赖项:

  • Qt Library
  • QScint

编译参数需要两个参数:

  • CMAKE_PREFIX_PATH :表明 QT 的 SDK 存放位置
  • QSCINT_SDK_PATH :表明 QScint 的 SDK 的存放位置

示例:

mkdir build && cd build
cmake .. -DCMAKE_PREFIX_PATH=D:\Qt5.12.11\Qt5.12.11\5.12.11\msvc2015_64\lib\cmake -DQSCINT_SDK_PATH=F:\gitee\QScint_SDK -G Ninja
ninja

QMake 编译

将该工程放在 %ndd_root_path%/src/plugin 文件夹中,且已经将 QScint 已经编译成动态库。使用 QtCreator 打开 %ndd_root_path%/src/plugin/ndd-json-viewer.pro 文件即可一键编译。

安装教程

将该项目生成的动态库拷贝至 %NPP_INSTALL_PATH%/plugin,重启 NPP 即可。

使用说明

快捷键 Ctrl+F8 将会格式化选中的文本;也可以通过菜单栏的 Json View 中的 Formatting Json(Ctrl+F8)按钮格式化选中的文本。

快捷键 Ctrl+F9 将会行化选中的文本;也可以通过菜单栏的 Json View 中的 Compress Json(Ctrl+F9)按钮行化选中的文本。

参与贡献

特技

MIT License Copyright (c) 2023 Zh1an Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

NDD 的 JSON 格式化插件。 展开 收起
C++
MIT
取消

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/ndd-community/ndd-json-viewer.git
git@gitee.com:ndd-community/ndd-json-viewer.git
ndd-community
ndd-json-viewer
NDD-JsonViewer
master

搜索帮助