w3c / i18n-drafts

A place to edit articles, tutorials, and the like for the /International subtree of the W3C site. Also, captures issues and comments.
63 stars 61 forks source link

Use of pre element for code snippets #464

Open r12a opened 1 year ago

r12a commented 1 year ago

The following is being moved here from https://github.com/w3c/i18n-drafts/pull/461

xfq said: We should use <pre><code> according to https://www.w3.org/International/i18n-activity/guidelines/editing#syntax-highlighting

r12a said: I wonder whether the style guidelines need changing. Sometimes it's useful to be able to wrap the code as the window width shrinks, and this looks like one of those occasions.

xfq said: I think that is the usage recommended by the HTML Standard, but I don't have a strong preference, and we can also useCSS (white-space: pre-wrap;) to control it.