JSON-Viewer icon indicating copy to clipboard operation
JSON-Viewer copied to clipboard

Disabling highlighting text beyond the formatted json

Open Numenorean opened this issue 3 years ago • 2 comments

Is it possible to disable text highlighting around the formatted json?

Numenorean avatar May 30 '21 10:05 Numenorean

When a file has other content than just json, highlighting is bad around the selected json-text.

seppo498573908457 avatar May 31 '21 09:05 seppo498573908457

Hi @Numenorean , @seppo498573908457, in latest version format/compress json does not select the text. Could you please check the latest version and let know your feedback.

Please note:

  1. Show/refresh dialog still selects the whole document if anything is selected
  2. JsonViewer also works on the selected text as well for all the operation. e.g. if selected text is json compliant, then it can format/compress the selected portion or it can show tree view only for selected portion.

How to test

  1. Download binary from build room https://github.com/kapilratnani/JSON-Viewer/releases/tag/v2.0.2.0 as appropriate e.g. win32 or x64 or ARM64
  2. Open Notepad++ plugin folder
    1. Open plugin folder, go to Plugins menu on Notepad++
    2. Click on Open Plugins Folder
  3. Navigate to NPPJSONViewer and rename the existing NPPJSONViewer.dll for backup.
  4. Copy the downloaded binary (in step # 1) to NPPJSONViewer folder.
  5. Run some test
  6. Once done, restore the backup. To restore,
    1. Delete the new file (NPPJSONViewer.dll)
    2. Rename the old file to NPPJSONViewer.dll
    3. Now backup is restored.

SinghRajenM avatar Oct 05 '22 18:10 SinghRajenM

Please use latest release binary. https://github.com/kapilratnani/JSON-Viewer/releases/tag/v2.0.4.0

SinghRajenM avatar Jan 28 '23 11:01 SinghRajenM