Search code examples
c#visual-studioresharperxml-documentation

How to emphasize a word in xml-doc showing up in tool-tip?


Is there a markup to emphasize (make bold, italic or whatever) a word in xml-doc? For example, in:

/// <summary>
/// Bla bla...
/// <para>
/// Important: take care of the wolf.
/// </para>
/// </summary>

I wan't the "Important" to be somhow emphasized (bold/italic/whaterver) when shown as a tool-tip when hovering over the member in Visual Studio (BTW, I'm using VS 2015 with R# 2016).

I've tried <b>, <i>, <em>, <strong> but non of the seem to work. I don't know if it's even possible at all.


Solution

  • VS (as of 2015) tool tips do not support formatting.

    But ReSharper's "Quick Documentation" feature (Ctrl+Shift+F1) is able to display the text with formatting.

    screen shot