public List<MarkerInstance> MarkAll(IList<Range> foundRanges)
{
List<MarkerInstance> ret = new List<MarkerInstance>();
Line lastLine = new Line(Scintilla, -1);
foreach (Range r in foundRanges)
{
// We can of course have multiple instances of a find on a single
// line. We don't want to mark this line more than once.
Line line = r.StartingLine;
if (line.Number > lastLine.Number)
ret.Add(Marker.AddInstanceTo(r.StartingLine));
lastLine = line;
}
return ret;
}