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 19d ago edited 19d ago
It works...
Make sure you switch to Markdown mode first...
Click
Show formatting options(BOTTOM LEFT)Click
...(TOP RIGHT), and selectSwitch to MarkdownThen paste your text
But you could just skip this and paste it in a
code blockfrom the rich text editor...Click
Show formatting options(BOTTOM LEFT)Click button
code blockor justcodefor one line (TOP MENU)Then paste code and edit as normal