6

I thought that we supported HTML tags in questions.

I'm using the latest version of Chrome and the <nobr> tag works fine for me on any HTML page, but not in any Stack Overflow posts: Prevent Long String From Wrapping on Symbols

It appears that Markdown does not support the <nobr> tag: What HTML tags are allowed on Stack Exchange sites?

Is there another way to prevent a non-code section of a question from breaking apart words that contain symbols?

4
  • 2
    Hmmm... I don't see <nobr> on this list at meta.stackexchange.com/a/135909
    – Steven V
    Commented Feb 12, 2015 at 16:10
  • 10
    Stack Exchange only supports a subset of HTML. Not all HTML.
    – animuson StaffMod
    Commented Feb 12, 2015 at 16:13
  • 1
    The <pre> tag is available, if you don't mind it being rendered in a fixed-width font. Commented Feb 12, 2015 at 19:03
  • @AndrewMorton Interesting that behaves just like ``. That's not precisely what I was looking for, but it seems as close as we can get. Could you put that in an answer? Commented Feb 12, 2015 at 19:13

2 Answers 2

6

From the list of available HTML tags, the <pre> tag is available, if you don't mind it being rendered in a fixed-width font.

3

Depending on the characters on which the line breaks happen, you may find an alternative "non‑breaking" Unicode variant.

I had the problem with a hyphen, and could replace it with "‑": U+2011 "NON-BREAKING HYPHEN" (UTF-8: 0xE2 0x80 0x91).

For spaces, you can of course use the non-breaking space U+00A0 &nbsp;

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .