Source

Resharper Spell Checker / ReSpeller / Highlightings / StringLiteralTypoHighlighting.cs

using System.Collections.Generic;
using JetBrains.DocumentModel;
using JetBrains.ReSharper.Daemon;

namespace ReSpeller.Highlightings
{
  [ConfigurableSeverityHighlighting(SeverityId,
    "CSHARP,VBASIC,JAVA_SCRIPT,Razor,ASPX,ASXX", OverlapResolve = OverlapResolveKind.NONE,
    ToolTipFormatString = ToolTipFormatString)]
  public class StringLiteralTypoHighlighting : TextRangeTypoHighlighting
  {
    private const string ToolTipFormatString = "Typo in string: \"{0}\"";
    internal const string SeverityId = "StringLiteralTypo";

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

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