3 ms·
>> ---- (Apparently ''' ... ''' doesn't do code in HN. Sorry for the wrap-around formatting.) For pre-formatted code leave two spaces at the start of the line.
by YeGoblynQueenne 4y ago
>> ---- (Apparently ''' ... ''' doesn't do code in HN. Sorry for the wrap-around formatting.)
For pre-formatted code leave two spaces at the start of the line.
Like this.
There's no special notation for code. Despite this being, you know Hacker News.
- dang 4y agopg added that formatting option specifically for code, way back when he first wrote the software.
- abrax3141 4y agoMaybe I'm missing something obvious but why can't we just write in MarkDown?
- munificent 4y agoIndented blocks for code is Markdown. The original Markdown language used +4 indentation for code blocks. GitHub later added support for `~~~` fenced code blocks and those became more popular.
- YeGoblynQueenne 4y agoWell then, I stand corrected :P
- dragonwriter 4y ago> For pre-formatted code leave two spaces at the start of the line [...] > There's no special notation for code You just explained the special notation for code, which is so important that it is HN’s only block environment, and then turn around and deny it exists?
- deleted 4y ago[deleted]
- astrange 4y agoI assume they want block notation and syntax coloring, rather than per-line notation and just monospace.