HighlightLanguage class, a data class that holds lexicon of a language to highlight.
More...
NoteFly.HighlightLanguage.HighlightLanguage |
( |
string |
name, |
|
|
string |
commentline, |
|
|
string |
commentstart, |
|
|
string |
commentend, |
|
|
string |
docstartstr, |
|
|
string |
docendstr, |
|
|
string[] |
keywords |
|
) |
| |
- Parameters
-
name | The name of the language |
commentline | How a comment line is marked in this language |
commentstart | How comments start is marked in this language |
commentend | How comments end is marked in this language |
docstartstr | How the document of this language start |
docendstr | How the document of this language end |
keywords | The keywords to highlight on |
void NoteFly.HighlightLanguage.CheckSetDocumentPos |
( |
string |
keyword, |
|
|
int |
curpos |
|
) |
| |
- Parameters
-
keyword | The keyword to check if the is used by this language as document start or end. |
curpos | The position in the richtextbox of the keyword. |
bool NoteFly.HighlightLanguage.FindKeyword |
( |
string |
keyword | ) |
|
- Parameters
-
keyword | The keyword to lookup |
- Returns
- True if exist in this highlightlanguage
string NoteFly.HighlightLanguage.commentend |
|
private |
string NoteFly.HighlightLanguage.commentline |
|
private |
string NoteFly.HighlightLanguage.commentstart |
|
private |
string NoteFly.HighlightLanguage.docendstr |
|
private |
string NoteFly.HighlightLanguage.docstartstr |
|
private |
Dictionary<string, int> NoteFly.HighlightLanguage.keywordsdic |
|
private |
string NoteFly.HighlightLanguage.name |
|
private |
int NoteFly.HighlightLanguage.posdocend = int.MaxValue |
|
private |
int NoteFly.HighlightLanguage.posdocstart = int.MaxValue |
|
private |
string NoteFly.HighlightLanguage.Commentend |
|
get |
string NoteFly.HighlightLanguage.Commentline |
|
get |
string NoteFly.HighlightLanguage.Commentstart |
|
get |
string NoteFly.HighlightLanguage.DocumentEndStr |
|
get |
string NoteFly.HighlightLanguage.DocumentStartStr |
|
get |
string NoteFly.HighlightLanguage.Name |
|
get |
int NoteFly.HighlightLanguage.NumKeywords |
|
get |
int NoteFly.HighlightLanguage.PosDocumentEnd |
|
getset |
int NoteFly.HighlightLanguage.PosDocumentStart |
|
getset |