4 ms·
Another option is word joiners: C⁠+⁠+ You can make this easier to type by defining an entity in XHTML: <!DOCTYPE html PUBLIC "-//W3C//DTD
by masfuerte 2y ago
Another option is word joiners:
C⁠+⁠+
You can make this easier to type by defining an entity in XHTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd" [
<!ENTITY cpp "C⁠+⁠+">
]>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<body style="font-family:monospace;width:5ch"><p>Look at &cpp;!</p></body>
</html>
- chrismorgan 2y agoYeah, that’s also a reasonable solution. For short things, you can often use U+200B ZERO-WIDTH SPACE instead of <wbr>, and this is U+2060 WORD JOINER as an alternative to wrapping in <nobr>.