This file contains hidden or 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.Lexer = Lexer.Xml; | |
// Show line numbers |
This file contains hidden or 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
private static void SetStyleJson(Scintilla scintilla) | |
{ | |
// Reset the styles | |
scintilla.StyleResetDefault(); | |
// Use fixed font for Json | |
scintilla.Styles[Style.Default].Font = "Consolas"; | |
scintilla.Styles[Style.Default].Size = 11; | |
scintilla.StyleClearAll(); |
This file contains hidden or 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.Lexer = Lexer.Sql; | |
// Show line numbers |