When I press the Macro > Modify shortcut / Delete macro menu entry in Notepad++, HTMLTidy is executed on the current file, then I get a popup error dialog:
“Writing error summary to C:\winprg\Notepad++\plugins\NppTextFX\Config\tidy\HTMLTIDY.ERR”
Notepad++ v188.8.131.52 (32-bit)
Build time : Dec 6 2021 - 19:16:45
Path : C:\winprg\Notepad++\notepad++.exe
Command Line :
Admin mode : ON
Local Conf mode : ON
Config : OFF
OS Name : Windows 7 Professional (64-bit)
OS Build : 7601.0
Current ANSI codepage : 1250
Plugins : BetterMultiSelection.dll ccc.dll ComparePlugin.dll DSpellCheck.dll HTMLTag_unicode.dll mimeTools.dll NppCalc.dll NppCCompletionPlugin.dll NppConverter.dll NppExport.dll NppFavorites.dll NppSnippets.dll NppTextFX.dll NppTextViz.dll PreviewHTML.dll QuickText.dll Remove Duplicate Lines.dll SelectQuotedText.dll SessionMgr.dll SherloXplorer.dll SurroundSelection.dll Translate.dll WebEdit.dll WindowManager.dll
How to fix this problem?
this happened to me too, just remove textfx and reinstall it, problem is am already defined macro (alt-shift-s) that is conflicting with textfx
If you disable the nppAutoDetectIndent plugin (rename the folder that the DLL is in… probably c:\program files\notepad++\plugins\nppAutoDetectIndent\) and re-run Notepad++, does it work?
if so, the bug is in nppAutoDetectIndent. Check to see if there’s a newer version to install. If not, create an issue with the developer of that plugin to let them know that their plugin is not compatible with Notepad++ v8.4.2, and they will have to do the fix.
Please someone fix this issue.
There is nothing that the Community of Notepad++ users (which is who this forum is made of) can do to fix this for you. You will have to find the issues location for that specific plugin.
I try myself to find a generic, from your regex. Works well, except doesn’t work for " (double quotes) because is repeated in the tag construction. I change those extra quotes on the content of tags, with a work, like “BOOM” and it find/replace it well beetween start and ending tag.
These are the generic regex for your second solution. Are almost the same, short and long version. Makes the same thing, find and replace just well between start and ending tags.