Re: Text filters to format JSON and XML

2021-05-28 Thread Arthur Goldberg
cript" ]; then > js-beautify --jslint-happy > elif [ "$BB_DOC_LANGUAGE" == "JSON" ]; then > python3 -m json.tool > else > echo "unknown language: $BB_DOC_LANGUAGE" > fi > ``` > > On Wednesday, May 26, 2021 at 9:42:09 AM UTC-7 artgo..

Re: Text filters to format JSON and XML

2021-05-28 Thread Greg Raven
n Wednesday, May 26, 2021 at 9:42:09 AM UTC-7 artgo...@gmail.com wrote: > I'm looking for text filters to format JSON and XML. Google and > https://www.barebones.com/search.html finds things that are not well > documented or seem outdated. > > For macOS Big Sur and Python 3 please. &g

Re: Text filters to format JSON and XML

2021-05-27 Thread @lbutlr
On 26 May 2021, at 10:41, Arthur Goldberg wrote: > I'm looking for text filters to format JSON and XML. Text filters, like regex in BBEdit? Don't. Stop now and back away. There are good tools for dealing with JSON files (jq is what I use) but there are a lot of formats out there that LOOK l

Re: Text filters to format JSON and XML

2021-05-26 Thread Charlie Garrison
On 27 May 2021, at 2:41, Arthur Goldberg wrote: I'm looking for text filters to format JSON and XML. Google and https://www.barebones.com/search.html finds things that are not well documented or seem outdated. BBEdit has built-in support for XML. There are lots of choices for JSON. I use

Re: Text filters to format JSON and XML

2021-05-26 Thread Patrick Woolsey
For XML, there's Markup -> Tidy -> Reflow Document... (and its relatives ;-). Regards Patrick Woolsey == Bare Bones Software, Inc. <https://www.barebones.com/> On 5/26/21 at 12:41 PM, artgoldb...@gmail.com (Arthur Goldberg) wrote: > I'm looking for text filters

Re: Text filters to format JSON and XML

2021-05-26 Thread jj
"xmllint.sh" like so: ``` #!/usr/bin/env sh xmllint --format - ``` place the text filter in BBEdit's "Text Filters" folder and you should be good to go. HTH Jean Jourdain On Wednesday, May 26, 2021 at 6:42:09 PM UTC+2 artgo...@gmail.com wrote: > I'm looking for

Text filters to format JSON and XML

2021-05-26 Thread Arthur Goldberg
I'm looking for text filters to format JSON and XML. Google and https://www.barebones.com/search.html finds things that are not well documented or seem outdated. For macOS Big Sur and Python 3 please. Thanks Arthur -- This is the BBEdit Talk public discussion group. If you have a feature