Hi Arthur, For JSON, I am very happy with 'jq'.
https://stedolan.github.io/jq/ Install it from homebrew: % brew install jq or download it from their site. Then create a text filter named "jq.sh" like so: ``` #!/usr/bin/env sh jq '.' ``` place the text filter in BBEdit's "Text Filters" folder and you should be good to go. For XML, I think macOS comes with xmllint installed. But this is not the case on your setup, you can install it from Homebrew: % brew install libxml2 Then create a text filter named "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 [email protected] 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. > > Thanks > Arthur > -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/bcfebb2a-7d21-47f3-8a5a-ed8887e35eacn%40googlegroups.com.
