Create a text filter named *xmllint.sh* and save it in "*menu BBEdit > 
Folders > Text Filters*" with executable permissions.

```
#!/usr/bin/env sh

xmllint --format -
```

You can then apply the filter to your document's selection or to the whole 
document if nothing is selected with "*menu Text > Apply Text Filter 
> xmllint.sh"*.

For more info on xmllint options, type in the terminal:

    man xmllint

HTH

Jean Jourdain
On Saturday, July 24, 2021 at 12:31:06 AM UTC+2 [email protected] wrote:

> On 2021 Jul 23, at 13:10, jj <[email protected]> wrote:
> > Did you try xmllint ?
>
> Ah, yes I do. Now, how to use it within BBEdit. (The only 'lint' mention 
> in the manual is about using bbresults from the command line).
>
> -- 
> "Are you pondering what I'm pondering?"
> "I think so, Brain, but what would goats be doing in red leather
> turbans?"
>
>

-- 
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/27671692-8781-4004-b2e3-bb4c63a3564en%40googlegroups.com.

Reply via email to