C# 클래스 Nexus.Client.ModManagement.Scripting.XmlScript.CPL.Controls.CplHighlightingStrategy

The highlighting strategy for the Conditional Pattern Language.
This is used to highilight CPL in the editor.
상속: IHighlightingStrategy
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

공개 메소드들

메소드 설명
CplHighlightingStrategy ( ICplParserFactory p_cpfLexerFactory ) : System

A simple construstor that sets the LexerFactory to use.

GetColorFor ( TokenClass p_ttpTokenClass ) : HighlightColor

Gets the HighlightColor for the specified class of token.

GetColorFor ( string p_strColourName ) : HighlightColor

Gets the HighlightColor for the specified class of token.

MarkTokens ( IDocument document ) : void

Highlights the tokens in the given document.

MarkTokens ( IDocument document, List lines ) : void

Highlights the tokens in the given lines in the given document.

보호된 메소드들

메소드 설명
GetTokenClass ( Int32 p_intTokenType ) : TokenClass

Determines the token class of the given token type.

HandleToken ( IDocument document, IToken j ) : void

Colourises the given token and adds it to the document.

메소드 상세

CplHighlightingStrategy() 공개 메소드

A simple construstor that sets the LexerFactory to use.
public CplHighlightingStrategy ( ICplParserFactory p_cpfLexerFactory ) : System
p_cpfLexerFactory ICplParserFactory The factory to use to create the CPL lexer used to highlight the code.
리턴 System

GetColorFor() 공개 메소드

Gets the HighlightColor for the specified class of token.
public GetColorFor ( TokenClass p_ttpTokenClass ) : HighlightColor
p_ttpTokenClass TokenClass The token class for which the /// is to be returned.
리턴 ICSharpCode.TextEditor.Document.HighlightColor

GetColorFor() 공개 메소드

Gets the HighlightColor for the specified class of token.
public GetColorFor ( string p_strColourName ) : HighlightColor
p_strColourName string
리턴 ICSharpCode.TextEditor.Document.HighlightColor

GetTokenClass() 보호된 메소드

Determines the token class of the given token type.
protected GetTokenClass ( Int32 p_intTokenType ) : TokenClass
p_intTokenType System.Int32 The token type to classify.
리턴 TokenClass

HandleToken() 보호된 메소드

Colourises the given token and adds it to the document.
protected HandleToken ( IDocument document, IToken j ) : void
document IDocument The document being highlighted.
j IToken The token to highlight.
리턴 void

MarkTokens() 공개 메소드

Highlights the tokens in the given document.
public MarkTokens ( IDocument document ) : void
document IDocument The document being highlighted.
리턴 void

MarkTokens() 공개 메소드

Highlights the tokens in the given lines in the given document.
public MarkTokens ( IDocument document, List lines ) : void
document IDocument The document being highlighted.
lines List The lines to highlight.
리턴 void