4 ms·
Reddit supports ``` BTW. You are thinking of StackOverflow probably (which is very annoying). Extra bonus points to sites like Github for supporting ```language
by aboutruby 8y ago
Reddit supports ``` BTW. You are thinking of StackOverflow probably (which is very annoying). Extra bonus points to sites like Github for supporting ```language-name, e.g. ```js / ```ruby / etc.
- rplnt 8y agoIt's just equivalent to `this` though, it doesn't do newlines or preserve spaces.
- aboutruby 8y ago`this` is for inline code, ``` this ``` is for code blocks. https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code https://github.com/adam-p/markdown-here/wiki/Markdown-Cheats...
- cabalamat 8y ago> You are thinking of StackOverflow probably (which is very annoying). It's particularly annoying because it's a programming site.
- zlynx 8y agoIt's a programming site, which means no one should be typing code in by hand. It's always got a typo or six. Cut the code, then paste it, select it and use the {} icon on the StackOverflow editor to indent the entire block. No need to guess at four space indents.
- medmunds 8y agoStackOverflow finally added ```language fenced code blocks a few months ago. https://meta.stackexchange.com/a/322000 https://meta.stackexchange.com/a/322000
- aboutruby 8y agoYou are a life saver! Now they just need to fix the reputation for new users but that's a lot more complex.