Syntax Highlighting

The easiest way to get syntax highlighting to work is to set the ConfigrationManager.Language property. The list of languages that have been fully configured for syntax highlighting are as follows

Language valueDescription
asmAssembly
csc#
htmlHTML
jsJavaScript
mssqlMicrosoft flavored T-SQL
psqlPostgre SQL
pythonPython
vbscriptVB Script
xmlXML


You can also use any of Scintilla's built in lexer names, however your mileage will vary on these without a full configration specifying all the styles. However many of the lexers use the same styles so try it out and see which syntaxes get highlighted. Note that you'll need to supply keywords for most languages.
adadlotprops
apdldiffloutps
asmeiffelluapurebasic
asn1eiffelkwmakepython
au3erlangmatlabrebol
aveerrorlistmetapostruby
baanescriptmmixalscriptol
bashf77mssqlsmalltalk
batchflagshipnncrontabspecman
blitsbasicforthnsisspice
bullantfortrannullsql
camlfreebasicoctavetads3
clwgapopaltcl
clwnocasegui4clipascaltex
cmakehaskellperlvb
confhypertextphpscriptvbscript
cppinnosetupplmverilog
cppnocasekixpovvhdl
csoundlatextpowerbasicxml
csslispprogressyaml


ConfigurationManager.Language can either be set in the designer or at runtime through code.