3 ms·
@" here strings in PS are fine for this purpose and even allows whitespace anywhere but because of the latter you can't indent it
by justsomehnguy 5y ago
@"
here strings in PS are fine for this purpose and
even allows whitespace anywhere
but because of the latter you can't indent it
with your other code
"@ -split "`r`n" | % {'<SOL>{0}<EOL>' -f $_ }
<SOL> here strings in PS are fine for this purpose and <EOL>
<SOL> even allows whitespace anywhere <EOL>
<SOL> but because of the latter you can't indent it <EOL>
<SOL> with your other code <EOL>
- kazinator 5y agoI posted a Unix StackExchange answer with some tricks for doing this in shell programming, very similar to your <SOL> trick. https://unix.stackexchange.com/questions/76481/cant-indent-heredoc-to-match-code-blocks-indentation/674903#674903 https://unix.stackexchange.com/questions/76481/cant-indent-h...