Hacker News new | past | comments | ask | show | jobs | submit login

Tip: you can use four leading spaces to write code.

    Like this



You only need two!

  like this


I tried, but two spaces yielded what you saw.


Huh, it also needed an extra line break before the first line of code. I didn't realize that! I've fixed it now.


I didn't realize that either, but it's described in formatdoc as such. So if you changed that behavior, probably should change the docs too.


I didn't change the behavior - I just added a newline. Sorry that wasn't clear.


You should be commended for the fast customer service!


I did not know that, after spending years on HN.

    while(1) fork();





Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: