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

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&NoBreak;+&NoBreak;+">
    ]>
    <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>


Yeah, 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>.




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

Search: