Interface IConfigLanguage
Provides the functionality for lexem-parser configuration.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Edit.Interfaces
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public interface IConfigLanguage : IFormatManager
Properties
AutoReplaceTriggers
Gets the list of autoreplace triggers.
Declaration
ArrayList AutoReplaceTriggers { get; }
Property Value
| Type |
|---|
| System.Collections.ArrayList |
Cached
Gets or sets value for cached.
Declaration
bool Cached { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
CaseInsensitive
Gets or sets a value indicating whether the current language is case sensitive or not.
Declaration
bool CaseInsensitive { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
EndComment
Gets or sets the string representing end of comment for this language. If EndComment is empty string, BeginComment is inserted in each of the commented lines.
Declaration
string EndComment { get; set; }
Property Value
| Type |
|---|
| System.String |
Extensions
Gets or sets the file extensions by which this language can be automatically linked to source file.
Declaration
ArrayList Extensions { get; set; }
Property Value
| Type |
|---|
| System.Collections.ArrayList |
KnownFormats
Known for object formats. Here is list of defined in config file formats. If format not defined, but it belong to default formats specified by FormatType enum then will be used default configuration for it. Each string hold one extension.
Declaration
ArrayList KnownFormats { get; }
Property Value
| Type |
|---|
| System.Collections.ArrayList |
Language
Gets the Language name.
Declaration
string Language { get; }
Property Value
| Type |
|---|
| System.String |
Lexems
Gets the list of lexem configurations.
Declaration
ArrayList Lexems { get; }
Property Value
| Type |
|---|
| System.Collections.ArrayList |
OneCharTokenSplits
Gets or sets the splitters.
Declaration
string OneCharTokenSplits { get; set; }
Property Value
| Type |
|---|
| System.String |
SnippetsContainer
Gets the container of code snippets.
Declaration
CodeSnippetsContainer SnippetsContainer { get; }
Property Value
| Type |
|---|
| CodeSnippetsContainer |
Splits
Gets or sets the array of multichar splitters (ex. ++, --, /*, */, //, /// )
Declaration
ArrayList Splits { get; set; }
Property Value
| Type |
|---|
| System.Collections.ArrayList |
StartComment
Gets or sets the string representing beginning of comment for this language. If EndComment is empty string, BeginComment is inserted in each of the commented lines.
Declaration
string StartComment { get; set; }
Property Value
| Type |
|---|
| System.String |
TriggersActivators
Gets or sets the array of autoreplace triggers activators.
Declaration
char[] TriggersActivators { get; }
Property Value
| Type |
|---|
| System.Char[] |
TriggersActivatorsString
Gets the string of triggers activators.
Declaration
string TriggersActivatorsString { get; }
Property Value
| Type |
|---|
| System.String |
Methods
AddCodeSnippet(CodeSnippet)
Adds a code snippet to the language.
Declaration
void AddCodeSnippet(CodeSnippet snippet)
Parameters
| Type | Name | Description |
|---|---|---|
| CodeSnippet | snippet | Code snippet to be added. |
AddCodeSnippet(String, ArrayList, String)
Adds a new code snippet to the language.
Declaration
void AddCodeSnippet(string title, ArrayList literals, string code)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | title | Title of code snippet. |
| System.Collections.ArrayList | literals | List of literals. |
| System.String | code | Code for code snippet. |
AddCodeSnippetsContainer(CodeSnippetsContainer)
Adds a new code snippets container to the language.
Declaration
void AddCodeSnippetsContainer(CodeSnippetsContainer container)
Parameters
| Type | Name | Description |
|---|---|---|
| CodeSnippetsContainer | container | Code snippets container to be added. |
FindConfig(Int32)
Gets the lexem configuration by it`s ID.
Declaration
IConfigLexem FindConfig(int iConfigID)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | iConfigID |
Returns
| Type |
|---|
| IConfigLexem |
ResetCaches()
Resets all cached data. Must be called after every change of the configuration inside the language.
Declaration
void ResetCaches()