Skip to content

Commit

Permalink
Remove unused header and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SinghRajenM committed Sep 14, 2024
1 parent b1fa37e commit 98dae7d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ This plugin is meant to display a JSON string in a Treeview. It also marks the e


## Instructions:
1. Paste the file `NPPJSONViewer.dll` to Notepad++ `plugins\NPPJSONViewer` folder
2. Restart Notepad++ and verify that the plugin appears under the Plugins menu
3. Open a document containing a JSON string (or paste in some JSON text)
4. Select JSON fragment and navigate to plugins/JSON Viewer/show JSON Viewer or press "Ctrl+Alt+Shift+J"
5. Voila!! If the JSON is valid, it will be shown in a Treeview
1. Paste the file `NPPJSONViewer.dll` to Notepad++ `plugins\NPPJSONViewer` folder.
2. Restart Notepad++ and verify that the plugin appears under the Plugins menu.
3. Open a document containing a JSON string (or paste in some JSON text).
4. Select JSON fragment and navigate to plugins/JSON Viewer/show JSON Viewer or press <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>J</kbd>.
5. Voila!! If the JSON is valid, it will be shown in a Treeview.


## Latest Updates:
Expand Down
3 changes: 2 additions & 1 deletion src/UtilityLib/StringHelper.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "StringHelper.h"
#include <regex>

#include "StringHelper.h"

std::string StringHelper::ReplaceAll(const std::string &str, const std::string &search, const std::string &replace)
{
return std::regex_replace(str, std::regex(search), replace);
Expand Down
2 changes: 1 addition & 1 deletion src/UtilityLib/Utility.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <optional>
#include <string>
#include <vector>
#include <Windows.h>
#include <optional>

class CUtility
{
Expand Down
2 changes: 0 additions & 2 deletions tests/UnitTest/JsonHandlerTest.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#include <gtest/gtest.h>

#include <vector>
#include <string>
#include <memory>

#include "JsonHandler.h"

Expand Down

0 comments on commit 98dae7d

Please sign in to comment.