notepad:tidy
How to run tidy as Notepad++ filter command
For some reason I didn't find a working example of how to run tidy in Notepad++, so I installed it via an external command with the following
- install pork to sausage plugin
- install chocolatey
winget install chocolatey
- install tiny
run cmd.exe as adminstrator
choco install html-tidy
- configure pork to sausage for the new command
go to the Port To Sausage, Edit User Commands and add the text to the end of the file
[html-tidy] progPath=C:\Tools\cmder\vendor\git-for-windows\usr\bin\bash.exe progCmd=bash -c 'echo $(SELECTION) | tidy 2>/dev/null' workDir=C:\Program Files\Notepad++\plugins\pork2Sausage\demo\zip.base64
This command makes use of bash since I couldn't get it to run the text with the tidy command in a single command line, I have used the one from Cmder, depending on what bash you have installed (usually in git-for-windows), the path has to be changed
notepad/tidy.txt · Last modified: 2024/11/20 20:47 by alex