Formatting HRML inside another document type?

8 views
Skip to first unread message

@lbutlr

unread,
Feb 23, 2021, 8:59:25 AM2/23/21
to BBEdit Talk

I would like to be able to apply "compact" HTML formatting to the HTML that is embedded in other documents, specifically PHP files, shell scripts, and XML files

The lat is probably the easiest since CDATA has clear start an end tags and I can probably just write a search and replace to remove white space between > and < that are between "<![CDATA[" and "]]>"

The others are trickier.

Anyone have any ideas on this? Perhaps a text-factory? Or maybe there is a service that does this already?

--
"Are you pondering what I'm pondering?"
"Oh yes, Brain! Remind me to tape all our phone calls!"

Reply all
Reply to author
Forward
0 new messages