Skip to content

Instantly share code, notes, and snippets.

@ideabucket ideabucket/Reflow XML.sh
Last active Mar 17, 2019

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

kbanning commented Mar 24, 2016

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

This comment has been minimized.

Copy link

markljackson commented Jul 30, 2016

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

This comment has been minimized.

Copy link

Telekor commented Dec 13, 2016

Thanks!

@2ec0b4

This comment has been minimized.

Copy link

2ec0b4 commented Jan 16, 2018

To use a Text Filter, select Menu_Bar > Text > Apply Text Filter > your_filter_name

Source: http://www.bbeditextras.org/wiki/index.php?title=Text_Filters

Thanks ;)

@ultrahuff

This comment has been minimized.

Copy link

ultrahuff commented Sep 7, 2018

Worked perfectly, thanks for the info.

@AdamLawicki

This comment has been minimized.

Copy link

AdamLawicki commented Jan 8, 2019

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

@alexumn

This comment has been minimized.

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/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.