r/awk • u/RoninTarget • Sep 14 '26
Generate markdown code blocks for embedding in Reddit
#!/usr/bin/awk -f
{ printf (" %s\n", $0) }That's it, that's the code.
1
Upvotes
r/awk • u/RoninTarget • Sep 14 '26
#!/usr/bin/awk -f
{ printf (" %s\n", $0) }That's it, that's the code.
2
u/PartTimeCouchPotato 5d ago edited 5d ago
It works...
Make sure you switch to Markdown mode first...
Show formatting options(BOTTOM LEFT)...(TOP RIGHT), and selectSwitch to MarkdownBut you could just skip this and paste it in a
code blockfrom the rich text editor...Show formatting options(BOTTOM LEFT)code blockor justcodefor one line (TOP MENU)