Highlight class, provides highlighting of a richedittextbox.
More...
|
| static string | CheckSyntaxPart (RichTextBox rtb, string rtf, string part, int curpos, int lastpos) |
| | Check the syntax of a part of the text with the enabled languages. More...
|
| |
| static string | ColorText (RichTextBox rtb, string rtf, int posstart, int len, string hexcolor) |
| | Color some part of the rich edit text. More...
|
| |
| static string | ResetHighlighting (RichTextBox rtb, string rtf, int skinnr, Notes notes) |
| | Make the whole text the default font color. More...
|
| |
| static string | ValidatingHtmlPart (string ishtml, RichTextBox rtb, string rtf, int posstartpart, HighlightLanguage langhtml) |
| | Highlight some text part on html split by spaces. More...
|
| |
| static string | ValidateHTMLAttribute (string htmlattribute, RichTextBox rtb, string rtf, int attributestartpos, HighlightLanguage langhtml) |
| | Validate HTML attribute More...
|
| |
| static string | ValidatingPhpPart (string isphp, RichTextBox rtb, string rtf, int posstart, HighlightLanguage langphp) |
| | Find out if it is a php keyword. More...
|
| |
| static string | ValidatingSqlPart (string issql, RichTextBox rtb, string rtf, int posstart, HighlightLanguage langsql) |
| | Find out if it is a sql keyword. More...
|
| |
|
| const string | LANGFILE = "langs.xml" |
| | The filename with xml description of languages keywords / lexicon More...
|
| |
| static void NoteFly.SyntaxHighlight.CheckSyntaxFull |
( |
RichTextBox |
rtb, |
|
|
int |
skinnr, |
|
|
Notes |
notes |
|
) |
| |
|
static |
- Parameters
-
| rtb | The richttextbox with RTF note content. |
| skinnr | The skin number |
| notes | Pointer to notes class. |
| static string NoteFly.SyntaxHighlight.CheckSyntaxPart |
( |
RichTextBox |
rtb, |
|
|
string |
rtf, |
|
|
string |
part, |
|
|
int |
curpos, |
|
|
int |
lastpos |
|
) |
| |
|
staticprivate |
- Parameters
-
| rtb | The RichTextBox control. |
| rtf | The RTF text |
| part | The space seperated part of text to check. |
| curpos | The current position in the text. |
| lastpos | The position of where the part started in the text of the RichTextBox. |
- Returns
- The new RTF text syntax highlighted.
| static void NoteFly.SyntaxHighlight.CheckSyntaxQuick |
( |
RichTextBox |
rtb, |
|
|
int |
skinnr, |
|
|
Notes |
notes |
|
) |
| |
|
static |
- Parameters
-
| rtb | RichEditTextbox |
| skinnr | The skinnr |
| notes | Reference to notes |
| static string NoteFly.SyntaxHighlight.ColorText |
( |
RichTextBox |
rtb, |
|
|
string |
rtf, |
|
|
int |
posstart, |
|
|
int |
len, |
|
|
string |
hexcolor |
|
) |
| |
|
staticprivate |
- Parameters
-
| rtb | The richtextbox contain the rtf text to apply coloring on. |
| rtf | The RTF text |
| posstart | The start position in the text to start coloring from. |
| len | The lenght of text to color. |
| hexcolor | The color the text should get. |
- Returns
- The new RTF content of the note.
| static void NoteFly.SyntaxHighlight.DeinitHighlighter |
( |
| ) |
|
|
static |
| static void NoteFly.SyntaxHighlight.InitHighlighter |
( |
| ) |
|
|
static |
| static string NoteFly.SyntaxHighlight.ResetHighlighting |
( |
RichTextBox |
rtb, |
|
|
string |
rtf, |
|
|
int |
skinnr, |
|
|
Notes |
notes |
|
) |
| |
|
staticprivate |
- Parameters
-
| rtb | The richedit control that hold the note content. |
| rtf | The RTF text |
| skinnr | The skin number of the current note. |
| notes | Reference to notes class. |
- Returns
- The new rtf stream
| static string NoteFly.SyntaxHighlight.ValidateHTMLAttribute |
( |
string |
htmlattribute, |
|
|
RichTextBox |
rtb, |
|
|
string |
rtf, |
|
|
int |
attributestartpos, |
|
|
HighlightLanguage |
langhtml |
|
) |
| |
|
staticprivate |
- Parameters
-
| htmlattribute | Attribute of the HTML node to validate |
| rtb | Richtextbox with note content |
| rtf | The rtf stream. |
| attributestartpos | Startposition of the attribute within the htmlpart. |
| langhtml | The html language description. |
- Returns
- The new rtf stream
| static string NoteFly.SyntaxHighlight.ValidatingHtmlPart |
( |
string |
ishtml, |
|
|
RichTextBox |
rtb, |
|
|
string |
rtf, |
|
|
int |
posstartpart, |
|
|
HighlightLanguage |
langhtml |
|
) |
| |
|
staticprivate |
- Parameters
-
| ishtml | String without spaces. length needs to be >0 |
| rtb | The richtextbox. |
| rtf | The rtf stream. |
| posstartpart | The start position in the richtextbox. |
| langhtml | The html language description. |
- Returns
- The new rtf stream
| static string NoteFly.SyntaxHighlight.ValidatingPhpPart |
( |
string |
isphp, |
|
|
RichTextBox |
rtb, |
|
|
string |
rtf, |
|
|
int |
posstart, |
|
|
HighlightLanguage |
langphp |
|
) |
| |
|
staticprivate |
- Parameters
-
| isphp | A part to be check if this a php keyword. |
| rtb | The richtextbox. |
| rtf | The rtf stream. |
| posstart | The position in rtb where this keyword starts. |
| langphp | The PHP language description. |
- Returns
- The new rtf stream.
| static string NoteFly.SyntaxHighlight.ValidatingSqlPart |
( |
string |
issql, |
|
|
RichTextBox |
rtb, |
|
|
string |
rtf, |
|
|
int |
posstart, |
|
|
HighlightLanguage |
langsql |
|
) |
| |
|
staticprivate |
- Parameters
-
| issql | The part to be check. |
| rtb | The richtextbox. |
| rtf | The rtf stream. |
| posstart | Position where the keyword starts in the richtextbox. |
| langsql | The sql language description. |
- Returns
- The new rtf stream.
| bool NoteFly.SyntaxHighlight.comment = false |
|
staticprivate |
| bool NoteFly.SyntaxHighlight.commentline = false |
|
staticprivate |
| char NoteFly.SyntaxHighlight.currentstringquote = '"' |
|
staticprivate |
| bool NoteFly.SyntaxHighlight.htmlstringpart = false |
|
staticprivate |
| bool NoteFly.SyntaxHighlight.keywordsinit = false |
|
staticprivate |
| const string NoteFly.SyntaxHighlight.LANGFILE = "langs.xml" |
|
private |
| bool NoteFly.SyntaxHighlight.outerhtml = true |
|
staticprivate |
| bool NoteFly.SyntaxHighlight.phpstringpart = false |
|
staticprivate |
| bool NoteFly.SyntaxHighlight.sqlfieldopen = false |
|
staticprivate |
| bool NoteFly.SyntaxHighlight.KeywordsInitialized |
|
staticget |
|