Using a Custom SciLexer.dll - jacobslusser/ScintillaNET GitHub Wiki

This is an advanced topic.

On rare occasions you may wish to provide your own build of the SciLexer DLL used by ScintillaNET instead of the one we embed for you. By default ScintillaNET will use the embedded one but you can override the default behavior by calling SetModulePath prior to instantiating any Scintilla controls:

// Call prior to creating any controls
Scintilla.SetModulePath("AltSciLexer.dll");

// Load a control and get the SciLexer.dll info
var scintilla = new Scintilla();
var version = scintilla.GetVersionInfo();

The path provided can be an absolute or relative path to SciLexer.dll.

It goes without saying that the SciLexer DLL embedded with ScintillaNET has been tested with ScintillaNET; yours has not. You run a compatibility risk running a nonstandard DLL.