4
$\begingroup$

Really, if you evaluate Style["/", Underlined] or type / and set the font of the character to be underlined through Format|Font..., you get $/$, not $\underline{/}$.
What I want to do is to underline a hyperlink, but...
enter image description here
the output is ugly. Note, that line has a gap before ".com".
This is not the problem of 'Courier New' only. I think this behavior caused because /, //, ., etc. are operators.

$\endgroup$

1 Answer 1

5
$\begingroup$

You can use UnderBar instead of Style[...,Underlined]:

Hyperlink[UnderBar[#], #] &@ "http://www.wolfram.com/Sine.html" 

enter image description here

Note: The issue you observe is mentioned in the docs Underlined >> Possible Issues:

Underlined will recursively affect all elements of an expression

$\endgroup$
2
  • $\begingroup$ Thank you. I couldn't guess to use under-bar operator, instead I sticked to text formatting. $\endgroup$ Commented Apr 23, 2015 at 12:20
  • $\begingroup$ @Danylo, my pleasure. Thank you for the accept. $\endgroup$ Commented Apr 23, 2015 at 12:21

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.