//
//
//
//
// $Revision$
//
using System;
using System.Collections.Generic;
namespace ICSharpCode.TextEditor.Document
{
///
/// A highlighting strategy for a buffer.
///
public interface IHighlightingStrategy
{
///
/// The name of the highlighting strategy, must be unique
///
string Name {
get;
}
///
/// The file extenstions on which this highlighting strategy gets
/// used
///
string[] Extensions {
get;
}
Dictionary Properties {
get;
}
// returns special color. (BackGround Color, Cursor Color and so on)
///
/// Gets the color of an Environment element.
///
HighlightColor GetColorFor(string name);
///
/// Used internally, do not call
///
void MarkTokens(IDocument document, List lines);
///
/// Used internally, do not call
///
void MarkTokens(IDocument document);
}
public interface IHighlightingStrategyUsingRuleSets : IHighlightingStrategy
{
///
/// Used internally, do not call
///
HighlightRuleSet GetRuleSet(Span span);
///
/// Used internally, do not call
///
HighlightColor GetColor(IDocument document, LineSegment keyWord, int index, int length);
}
}