Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

a good way to put chunks of code in comments. ideally some wrapper notation around the code that does all or some of the following for its contents:

-uses a monospaced font

-newlines get turned into <br> so that lines show up next to eachother

- < and > get html escaped

- extra spaces and tabs get turned into &nbsp;s to preserve indentation



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: