99#include < regex>
1010
1111
12- JsonViewDlg::JsonViewDlg (HINSTANCE hIntance , const NppData &nppData, const bool &isReady, int nCmdId, std::shared_ptr<Setting> &pSetting)
12+ JsonViewDlg::JsonViewDlg (HINSTANCE hInstance , const NppData &nppData, const bool &isReady, int nCmdId, std::shared_ptr<Setting> &pSetting)
1313 : DockingDlgInterface(IDD_TREEDLG)
1414 , m_NppData(nppData)
1515 , m_IsNppReady(isReady)
@@ -19,7 +19,7 @@ JsonViewDlg::JsonViewDlg(HINSTANCE hIntance, const NppData &nppData, const bool
1919 , m_pSetting(pSetting)
2020{
2121 _hParent = nppData._nppHandle ;
22- _hInst = hIntance ;
22+ _hInst = hInstance ;
2323}
2424
2525JsonViewDlg::~JsonViewDlg ()
@@ -77,7 +77,7 @@ void JsonViewDlg::FormatJson()
7777 if (res.success )
7878 {
7979 m_Editor->ReplaceSelection (res.response );
80- HightlightAsJson ();
80+ HighlightAsJson ();
8181 }
8282 else
8383 {
@@ -98,7 +98,7 @@ void JsonViewDlg::CompressJson()
9898 if (res.success )
9999 {
100100 m_Editor->ReplaceSelection (res.response );
101- HightlightAsJson ();
101+ HighlightAsJson ();
102102 }
103103 else
104104 {
@@ -152,7 +152,7 @@ bool JsonViewDlg::CheckForTokenUndefined(eMethod method, std::string selectedTex
152152 if (res.success )
153153 {
154154 m_Editor->ReplaceSelection ((method == eMethod::ParseJson || method == eMethod::ValidateJson) ? text : res.response );
155- HightlightAsJson ();
155+ HighlightAsJson ();
156156 return true ;
157157 }
158158 else
@@ -257,7 +257,7 @@ void JsonViewDlg::DrawJsonTree()
257257 EnableControls (ctrls, true );
258258}
259259
260- void JsonViewDlg::HightlightAsJson (bool bForcefully) const
260+ void JsonViewDlg::HighlightAsJson (bool bForcefully) const
261261{
262262 bool setJsonLang = bForcefully || m_pSetting->bUseJsonHighlight ;
263263 if (setJsonLang)
@@ -295,7 +295,7 @@ auto JsonViewDlg::PopulateTreeUsingSax(HTREEITEM tree_root, const std::string &j
295295 }
296296 else
297297 {
298- HightlightAsJson ();
298+ HighlightAsJson ();
299299 }
300300
301301 return retVal;
@@ -338,7 +338,7 @@ void JsonViewDlg::SearchInTree()
338338 static std::wstring previousSearch;
339339 static HTREEITEM nextNode = m_hTreeView->NextItem (m_hTreeView->GetRoot ());
340340
341- // New search, hence search from begining
341+ // New search, hence search from beginning
342342 if (previousSearch != itemToSearch)
343343 {
344344 previousSearch = itemToSearch;
@@ -372,7 +372,7 @@ void JsonViewDlg::SearchInTree()
372372
373373 // Search in node value
374374 // 1. If both key and value are not equal
375- // 2. If both are euaal , but not all three (key, value and keyValue)
375+ // 2. If both are equal , but not all three (key, value and keyValue)
376376 // 3. If all three equal, but key does not start with '[' and end with ']'
377377
378378 bool shouldSearch = (nodeKey != nodeVal);
0 commit comments