5 ms·
I note that putting lines of text between ```...``` can be used to put them in a monospaced font. This is useful when discussing programming, as one can includ
by cabalamat 8y ago
I note that putting lines of text between ```...``` can be used to put them in a monospaced font.
This is useful when discussing programming, as one can include excerpts of code. To do this in Reddit, you have to prefix each line by 4 spaces, which is hard to do because the comment box doesn't use a monospaced font.
Maybe Commento could have an option of a monospaced font for the comment box?
- aboutruby 8y agoReddit 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.
- rplnt 8y agoI just prepend them in a text editor which is quick and easy.