Question

Possible Duplicate:
Why can we format text with bold and italic but sideline the underline?

How can I underline text in my questions in Stack Overflow??

This is important for me to format object text like in

my:House

in OOP.

This workaround looks a bit stupid at times but maybe it is worth considering. It uses U+0332COMBINING LOW LINE—after each character to render it underlined

I could not combine a semicolon with an underline, so, these are the results.

t̲e̲x̲t̲
m̲y̲:H̲o̲u̲s̲e̲
 :̲

m̲y̲:̲H̲o̲u̲s̲e̲

m̲y̲:H̲o̲u̲s̲e̲

u̲n̲d̲e̲r̲l̲i̲n̲e̲d̲ t̲e̲x̲t̲

u̲n̲d̲e̲r̲l̲i̲n̲e̲d̲

Reference: Why can we format text with bold and italic but not underline?

Was it helpful?

Solution

Markdown doesn't have a defined syntax to underline text so to answer your question, you can't.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top