This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reset the styles | |
scintilla.StyleResetDefault(); | |
scintilla.Styles[Style.Default].Font = "Courier New"; | |
scintilla.Styles[Style.Default].Size = 10; | |
scintilla.StyleClearAll(); | |
// Set the SQL Lexer | |
scintilla.LexerName = "sql"; | |
// Show line numbers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reset the styles | |
scintilla.StyleResetDefault(); | |
scintilla.Styles[Style.Default].Font = "Consolas"; | |
scintilla.Styles[Style.Default].Size = 10; | |
scintilla.StyleClearAll(); | |
// Set the XML Lexer | |
scintilla.LexerName = "xml"; | |
// Show line numbers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reset the styles | |
scintilla.StyleResetDefault(); | |
scintilla.Styles[Style.Default].Font = "Consolas"; | |
scintilla.Styles[Style.Default].Size = 10; | |
scintilla.StyleClearAll(); // i.e. Apply to all | |
// Set the lexer | |
scintilla.LexerName = "python"; | |
// Known lexer properties: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Extracted from the Lua Scintilla lexer and SciTE .properties file | |
var alphaChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
var numericChars = "0123456789"; | |
var accentedChars = "ŠšŒœŸÿÀàÁáÂâÃãÄäÅåÆæÇçÈèÉéÊêËëÌìÍíÎîÏïÐðÑñÒòÓóÔôÕõÖØøÙùÚúÛûÜüÝýÞþßö"; | |
// Configuring the default style with properties | |
// we have common to every lexer style saves time. | |
scintilla.StyleResetDefault(); | |
scintilla.Styles[Style.Default].Font = "Consolas"; |