HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by animex | Hacker News Reader
Parent
Full thread
animex
·
@dang will HN ever support code blocks in comments? pls.
View on HN
bfung
·
You can get fixed formatting by newline + indenting 2 spaces, similar to non-GitHub markdown
# Like this y = mx + b
The “help” link could be added to more places while authoring, as it only shows up on the “edit” post screen atm.
https://news.ycombinator.com/formatdoc
eyelidlessness
·
Indent 4 spaces, you’ll get monospace. Not syntax highlighted but I doubt you’ll ever see that here.
gus_massa
·
Nitpicking: 2 spaces for HN, and 4 spaces for GitHub.
eyelidlessness
·
Fair nitpick! I always use 4 where I know indentation works, just to be safe.
Reply on news.ycombinator.com