C# Class ICSharpCode.TextEditor.Document.DefaultHighlightingStrategy

Inheritance: IHighlightingStrategy
Show file Open project: Clancey/MonoMac.Windows.Form Class Usage Examples

Protected Properties

Property Type Description
activeRuleSet ICSharpCode.TextEditor.Document.HighlightRuleSet
activeSpan ICSharpCode.TextEditor.Document.Span
currentLength int
currentLine LineSegment
currentLineNumber int
currentOffset int
currentSpanStack SpanStack
inSpan bool

Public Methods

Method Description
AddRuleSet ( ICSharpCode.TextEditor.Document.HighlightRuleSet aRuleSet ) : void
DefaultHighlightingStrategy ( ) : System
DefaultHighlightingStrategy ( string name ) : System
FindHighlightRuleSet ( string name ) : ICSharpCode.TextEditor.Document.HighlightRuleSet
GetColor ( IDocument document, LineSegment currentSegment, int currentOffset, int currentLength ) : HighlightColor
GetColorFor ( string name ) : HighlightColor
GetRuleSet ( ICSharpCode.TextEditor.Document.Span aSpan ) : ICSharpCode.TextEditor.Document.HighlightRuleSet
MarkTokens ( IDocument document ) : void
MarkTokens ( IDocument document, List inputLines ) : void
ResolveReferences ( ) : void
SetColorFor ( string name, HighlightColor color ) : void

Protected Methods

Method Description
GetColor ( ICSharpCode.TextEditor.Document.HighlightRuleSet ruleSet, IDocument document, LineSegment currentSegment, int currentOffset, int currentLength ) : HighlightColor
ImportSettingsFrom ( DefaultHighlightingStrategy source ) : void
OnParsedLine ( IDocument document, LineSegment currentLine, List words ) : void
OverrideSpan ( string spanBegin, IDocument document, List words, ICSharpCode.TextEditor.Document.Span span, int &lineOffset ) : bool

Private Methods

Method Description
GetRegString ( LineSegment lineSegment, char expr, int index, IDocument document ) : string

get the string, which matches the regular expression expr, in string s2 at index

MarkTokensInLine ( IDocument document, int lineNumber, bool &spanChanged ) : bool
MatchExpr ( LineSegment lineSegment, char expr, int index, IDocument document, bool ignoreCase ) : bool

returns true, if the get the string s2 at index matches the expression expr

ParseLine ( IDocument document ) : List
PushCurWord ( IDocument document, HighlightColor &markNext, List words ) : void

pushes the curWord string on the word list, with the correct color.

ResolveExternalReferences ( ) : void
ResolveRuleSetReferences ( ) : void
UpdateSpanStateVariables ( ) : void

Method Details

AddRuleSet() public method

public AddRuleSet ( ICSharpCode.TextEditor.Document.HighlightRuleSet aRuleSet ) : void
aRuleSet ICSharpCode.TextEditor.Document.HighlightRuleSet
return void

DefaultHighlightingStrategy() public method

public DefaultHighlightingStrategy ( ) : System
return System

DefaultHighlightingStrategy() public method

public DefaultHighlightingStrategy ( string name ) : System
name string
return System

FindHighlightRuleSet() public method

public FindHighlightRuleSet ( string name ) : ICSharpCode.TextEditor.Document.HighlightRuleSet
name string
return ICSharpCode.TextEditor.Document.HighlightRuleSet

GetColor() protected method

protected GetColor ( ICSharpCode.TextEditor.Document.HighlightRuleSet ruleSet, IDocument document, LineSegment currentSegment, int currentOffset, int currentLength ) : HighlightColor
ruleSet ICSharpCode.TextEditor.Document.HighlightRuleSet
document IDocument
currentSegment LineSegment
currentOffset int
currentLength int
return HighlightColor

GetColor() public method

public GetColor ( IDocument document, LineSegment currentSegment, int currentOffset, int currentLength ) : HighlightColor
document IDocument
currentSegment LineSegment
currentOffset int
currentLength int
return HighlightColor

GetColorFor() public method

public GetColorFor ( string name ) : HighlightColor
name string
return HighlightColor

GetRuleSet() public method

public GetRuleSet ( ICSharpCode.TextEditor.Document.Span aSpan ) : ICSharpCode.TextEditor.Document.HighlightRuleSet
aSpan ICSharpCode.TextEditor.Document.Span
return ICSharpCode.TextEditor.Document.HighlightRuleSet

ImportSettingsFrom() protected method

protected ImportSettingsFrom ( DefaultHighlightingStrategy source ) : void
source DefaultHighlightingStrategy
return void

MarkTokens() public method

public MarkTokens ( IDocument document ) : void
document IDocument
return void

MarkTokens() public method

public MarkTokens ( IDocument document, List inputLines ) : void
document IDocument
inputLines List
return void

OnParsedLine() protected method

protected OnParsedLine ( IDocument document, LineSegment currentLine, List words ) : void
document IDocument
currentLine LineSegment
words List
return void

OverrideSpan() protected method

protected OverrideSpan ( string spanBegin, IDocument document, List words, ICSharpCode.TextEditor.Document.Span span, int &lineOffset ) : bool
spanBegin string
document IDocument
words List
span ICSharpCode.TextEditor.Document.Span
lineOffset int
return bool

ResolveReferences() public method

public ResolveReferences ( ) : void
return void

SetColorFor() public method

public SetColorFor ( string name, HighlightColor color ) : void
name string
color HighlightColor
return void

Property Details

activeRuleSet protected property

protected HighlightRuleSet,ICSharpCode.TextEditor.Document activeRuleSet
return ICSharpCode.TextEditor.Document.HighlightRuleSet

activeSpan protected property

protected Span,ICSharpCode.TextEditor.Document activeSpan
return ICSharpCode.TextEditor.Document.Span

currentLength protected property

protected int currentLength
return int

currentLine protected property

protected LineSegment,ICSharpCode.TextEditor.Document currentLine
return LineSegment

currentLineNumber protected property

protected int currentLineNumber
return int

currentOffset protected property

protected int currentOffset
return int

currentSpanStack protected property

protected SpanStack currentSpanStack
return SpanStack

inSpan protected property

protected bool inSpan
return bool