Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Using a Custom SciLexer.dll

jacobslusser edited this page May 31, 2015 · 2 revisions

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.

Clone this wiki locally