3

Im using ScintillaNET and i want syntax highlighting. I Cant seem to figure it out :(

i have tried:

Scintilla.Lexing.Lexer = ScintillaNet.Lexer.Php
Scintilla.Lexing.LoadLexerLibrary(ScintillaNet.Lexer.Php)
Scintilla.Lexing.LexerName = "php"
Scintilla.ConfigurationManager.Language = "phpscript"
Scintilla.ConfigurationManager.Language = "php"
Adam Rackis
  • 82,527
  • 56
  • 270
  • 393
Stian
  • 649
  • 3
  • 7
  • 15

1 Answers1

0

Put this in form load.

Scintilla1.ConfigurationManager.Language = "vbscript" ' Change vbscript to your language.

And by the way, you have to look at the supported languages for scintilla, the language you want may not be supported.

  • I did test this and, in my case, it's working with Scintilla1.ConfigurationManager.Language = "bash" but not with Scintilla1.ConfigurationManager.Language = "php", although php is supported as far as I understand...(https://searchcode.com/codesearch/view/11102232/) – Valery Letroye Jan 25 '17 at 23:06