logoalt Hacker News

SwellJoetoday at 3:59 AM4 repliesview on HN

Indent for code blocks is a non-starter. Can't paste easily, very annoying to type in a web form. Triple backticks is the right thing.


Replies

xigoitoday at 8:24 AM

That said, I think it would be better if the closing delimiter was different from the opening one. Yesterday I had an LLM output text where it forgot one of the delimiters, causing all text inside code blocks to actually be outside and vice-versa.

sshinetoday at 5:37 AM

Triple backticks also let you specify the syntax very conveniently.

prodigalknighttoday at 4:42 AM

Add to that using -> to designate a link with a numbered URL for the actual href (numbered hrefs are already in Markdown), and also needing to indent list items... this is a solution in search of a problem.

orthoxeroxtoday at 7:51 AM

I wish HN supported triple backticks.