/// <summary> /// Called when plugin is loaded into IDE. /// </summary> /// <param name="bridge">Object used to communicate with IDE from plugin.</param> public void onLoad(IIdeBridge bridge) { mBridge = bridge; FileSyntaxModeProvider fsmp = new FileSyntaxModeProvider(mBridge.GetPluginsPath() + @"\syntax"); HighlightingManager.Manager.AddSyntaxModeFileProvider(fsmp); }
/// <summary> /// Called when plugin is unloaded from IDE. /// Here you should cleanup anything. /// </summary> public void onUnload() { mBridge = null; }