3 ms·
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.
by SwellJoe 4mo ago
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.
- prodigalknight 4mo agoAdd 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.
- sshine 4mo agoTriple backticks also let you specify the syntax very conveniently.
- orthoxerox 4mo agoI wish HN supported triple backticks.
- xigoi 4mo agoThat 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.