3

Possible Duplicate:
What HTML tags are allowed on Stack Exchange sites?

Within the <pre>-environment the tag <u> has no visible effect (Firefox 7.0.1 but also earlier like 3.6.17). I would expect it to underline. I use <b> already to mean something else (user input - the <kbd> is not very readable for this).

9
  • 3
    possible duplicate of What HTML tags are allowed on Stack Exchange sites?... <u> is (thankfully) not supported at all, regardless of <pre>. Aside: the more you get carried away with the formatting, the less readable your post usually gets. Simpler is better.
    – user159834
    Apr 17, 2012 at 21:03
  • @Wesley Murch: I need the extra formatting for explaining transscripts and program slices.
    – false
    Apr 17, 2012 at 22:00
  • Don't use <pre> blocks when you want rich text formatting. Simple. Apr 18, 2012 at 1:06
  • 1
    @The Establishment: How else should I format and annotate program text easily?
    – false
    Apr 18, 2012 at 11:20
  • You aren't supposed to "format" program text. It isn't formatted in your editor, either. Use words to describe the problem. See, for example, these questions: Bold code in a question Allow highlighting certain bits of a code fragment or quote Formatting the code block? Code highlighting improvement suggestion Some way to put emphasis on code, please Apr 18, 2012 at 19:53
  • @The Establishment: I do format program slices. That is, these are programs but annotated w.r.t. a specific semantics. Here is a recent example of me. Please follow the link in the text to see what I mean.
    – false
    Apr 18, 2012 at 21:26
  • @The Establishment: Thank you for the references. I went through all of them. The recommendations made are essentially: Quote less program text and the like. But please look at my examples: They are already very short right from the beginning!
    – false
    Apr 18, 2012 at 22:56
  • Sorry, I don't know the language under discussion there, so your code samples don't make any sense to me. But in general, I don't understand the purpose for underlining and bolding code. Just leave it out if it doesn't belong. Apr 18, 2012 at 23:11
  • Also, even in standard HTML, that wouldn't work they way you want it to.
    – Claudia
    Jan 18, 2014 at 23:17

1 Answer 1

1

<u> tags are stripped, they are not in the list of allowed HTML for Stack Overflow's Markdown.

See What HTML tags are allowed on Stack Exchange sites?

4
  • 1
    Yeah exactly...
    – user159834
    Apr 17, 2012 at 21:05
  • So how do we underline things, then?
    – endolith
    Jul 11, 2018 at 19:44
  • 1
    @endolith You don't. We don't allow underlining on our sites.
    – animuson StaffMod
    Jul 11, 2018 at 19:47
  • I̲ ̲g̲u̲e̲s̲s̲ ̲w̲e̲'̲l̲l̲ ̲h̲a̲v̲e̲ ̲t̲o̲ ̲f̲i̲n̲d̲ ̲w̲o̲r̲k̲a̲r̲o̲u̲n̲d̲s̲ ̲t̲h̲e̲n̲?̲
    – endolith
    Jul 11, 2018 at 19:49

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