2 ms·
It's extremely convenient to embed content which is not single line but which you'd be embedding either way e.g. text with some amont of formatting, or literal
by masklinn 7y ago
It's extremely convenient to embed content which is not single line but which you'd be embedding either way e.g. text with some amont of formatting, or literal SQL queries.
It's also useful for small amounts of structured content e.g. if you don't yet need to rely on a full-blown templating system for your HTML, or to POST small amounts of static JSON or somesuch.
> You lose syntax formatting if it's structured content
Jetbrains's IDEs do content-sniffing and formatting and coloration of embedded content (though it breaks down somewhat quickly if you start doing string formatting within the block).