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

If you're not aware, indenting your code marks it as preformatted, and so won't wrap in HN. Code which is preformatted and not wrapped is really hard to read on mobile, and even on desktop the end of your code is cut off in a scroll box.

It's almost always easier to read if you don't indent it, though HN should probably fix their style sheets so it doesn't matter.

If I'm quoting something (another reason people often indent their comments) I will normally wrap the whole thing in * so that it is italicised.

I don't know a good way to make code stand out, maybe someone else has an idea.




> If I'm quoting something (another reason people often indent their comments) I will normally wrap the whole thing in * so that it is italicised.

Personally I prefer putting a greater than sign in front of each paragraph I am quoting / quoting from.

It’s what we do in e-mail and on most imageboards and in markdown. It’s easy to read and easy to understand that it’s a quote.




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

Search: