Source

Resharper Spell Checker / ReSpeller / Highlightings / CommentTypoHighlighting.cs

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

namespace ReSpeller.Highlightings
{
  [ConfigurableSeverityHighlighting(SeverityId,
    "CSHARP,VBASIC,XML,RESX,XAML", OverlapResolve = OverlapResolveKind.NONE,
    ToolTipFormatString = ToolTipFormatString)]
  public class CommentTypoHighlighting : TextRangeTypoHighlighting
  {
    private const string ToolTipFormatString = "Typo in comment: \"{0}\"";
    internal const string SeverityId = "CommentTypo";

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

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