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
Показать файл Открыть проект

Открытые методы

Метод Описание
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