Source

Resharper Spell Checker / ReSpeller / Highlightings / MarkupTextTypoHighlighting.cs

Full commit
using JetBrains.DocumentModel;
using JetBrains.ReSharper.Daemon;

namespace ReSpeller.Highlightings
{
  [ConfigurableSeverityHighlighting(SeverityId,
    "XML,RESX,XAML,Razor,ASPX", OverlapResolve = OverlapResolveKind.NONE,
    ToolTipFormatString = ToolTipFormatString)]
  public class MarkupTextTypoHighlighting : TextRangeTypoHighlighting
  {
    private const string ToolTipFormatString = "Typo in markup text: \"{0}\"";
    internal const string SeverityId = "MarkupTextTypo";

    public MarkupTextTypoHighlighting(DocumentRange range) : base(range)
    {
    }

    public override string ToolTip { get { return string.Format(ToolTipFormatString, Range.GetText()); }}
    public override string ErrorStripeToolTip { get { return string.Format(ToolTipFormatString, Range.GetText()); } }
  }
}