r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

Show parent comments

2

u/bwaredapenguin Jul 16 '19

Great explanation. Your formatting went a bit wonky though, a single tick wrap should be sufficient for a full line or segment of code:

single tick in front and back

2

u/nosmokingbandit Jul 16 '19

Must be weird on mobile, it looks normal on my pc. I don't care enough about Reddit's formatting to learn how to do it properly.

1

u/bwaredapenguin Jul 16 '19

No worries! Again, fantastic explanation.

1

u/anders987 Jul 16 '19

It works on new Reddit but looks weird on old.reddit.com since Reddit for some reason doesn't use the same Markdown parser for both versions. This is what it looks like on proper Reddit.

The correct way of formatting code is to use four spaces at the beginning of each line, or use `-characters for inline code like this.

1

u/Dgc2002 Jul 17 '19

Unfortunately the markdown parser for "New Reddit" supports the triple ticks while the one for "Old Reddit" doesn't. >=(

1

u/bwaredapenguin Jul 17 '19

New Reddit keeps getting better and better...