Create a gist now

Instantly share code, notes, and snippets.

BBEdit text filter to replace Markup → Tidy → Reflow XML
#!/usr/bin/env bash
# put this file in Application Support/BBedit/Text Filters/
# xmllint ships by default in recent versions of OS X
xmllint --format -
@kbanning

Thanks, this is very helpful. I don't know why they removed Tidy but this should be a basic feature of an expensive text editor these days!

@markljackson

I believe it was removed due to Tidy not being updated, and having "ownership" issues. If you look at the Tidy webpage, there is a gap from 2008 to 2015 when it sat idle.

@Telekor
Telekor commented Dec 13, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment