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

When this problem comes up in code-related documentation at work, I often fall back onto either a distinct typeface or a background-color shift.

That way it's clearer when I'm referring to a literal code-string versus quote marks that are part of the prose.



I usually use <pre></pre> for this.


<tt>

Teletype longa, vita brevis.


The <tt> tag is deprecated.


The blink and marquee tags are deprecated but they still work...


True. But it is well supported and it meets a need.




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

Search: