我正在寻找类似 this 的内容:
使用 jsoneditor npm package。
我没有在 the API 中找到任何并排比较或“差异”模式。
有谁知道这个包是否已经支持?
或者他们推荐的另一个提供并排差异的软件包?
否则看起来我将不得不通过单独的 diff 包运行 json,并根据输出使用底层 ACE 编辑器的突出显示 API 来模拟 jsoneditoronline diff 功能。
对以上几点的任何建议将不胜感激。
基于此评论 - https://www.github.com/josdejong/jsoneditor/issues/1178 它需要自定义实现。
这个链接可能是一个好的开始: https://github.com/josdejong/jsoneditor/blob/develop/examples/20_custom_css_style_for_nodes.html