Skip to content

Instantly share code, notes, and snippets.

Last active Feb 1, 2021
What would you like to do?
BBEdit text filter to replace Markup → Tidy → Reflow XML

As of BBEdit 13.1, the HTML Tidy built-ins are back and you should use those instead. This gist is so old it refers to "OS X", c’mon!

If for some reason you are using this, note @ryanfrancesconi’s comment about the correct place to put the file when using sandboxed versions of BBEdit.

#!/usr/bin/env bash
# put this file in [Library location]/Application Support/BBedit/Text Filters/
# xmllint ships by default in recent versions of OS X
xmllint --format -
Copy link

AdamLawicki commented Jan 8, 2019

Hey @ideabucket this looks legit, how do I install to BBEDIT?

Copy link

alexumn commented Mar 17, 2019

Thanks, this is super handy!

A quick usage note: Application Support/BBedit/Text Filters/ could be ~/Library/Application Support/BBEdit/Text Filters/.

Copy link

ryanfrancesconi commented Jan 18, 2021

Note for others arriving here: if it's a sandboxed version of BBEdit, this location won't exist and instead will be:

~Library/Containers/com.barebones.bbedit/Data/Library/Application Support/BBEdit/Text Filters

They have a short cut from the Folders menu.

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