News for hackers. Stuff that matters.
Re:Diagram as Code by kitd on Tuesday May 12, 2020 @03:54PM (#23158892)
Indent with 4 spaces at the start of each line for code blocks.
Re:Diagram as Code by anamexis on Tuesday May 12, 2020 @03:55PM (#23158903)
This is annoyingly difficult in a browser.
Re:Diagram as Code by Allezxandre on Tuesday May 12, 2020 @04:58PM (#23159715)
Just copy the text and use `sed` on your clipboard to transform your text.

On macOS:

    pbpaste | sed 's/^.*$/    &/' | pbcopy
Re:Diagram as Code by yesenadam on Tuesday May 12, 2020 @06:13PM (#23160676)
Perhaps it's more readable/writeable with Awk:

    pbpaste | awk '{print "    "$0}' | pbcopy
Although this also seems to do the same thing

    pbpaste | sed 's/^/    &/' | pbcopy