Created
April 19, 2013 14:33
-
-
Save sharwell/5420740 to your computer and use it in GitHub Desktop.
A minimal implementation of `IVsLanguageInfo`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
using Microsoft.VisualStudio; | |
using Microsoft.VisualStudio.TextManager.Interop; | |
[Guid("your guid here")] | |
internal class ExampleLanguageInfo : IVsLanguageInfo | |
{ | |
public int GetCodeWindowManager(IVsCodeWindow pCodeWin, out IVsCodeWindowManager ppCodeWinMgr) | |
{ | |
ppCodeWinMgr = null; | |
return VSConstants.E_NOTIMPL; | |
} | |
public int GetColorizer(IVsTextLines pBuffer, out IVsColorizer ppColorizer) | |
{ | |
ppColorizer = null; | |
return VSConstants.E_NOTIMPL; | |
} | |
public int GetFileExtensions(out string pbstrExtensions) | |
{ | |
pbstrExtensions = ".e1;.e2"; | |
return VSConstants.S_OK; | |
} | |
public int GetLanguageName(out string bstrName) | |
{ | |
bstrName = "Example"; | |
return VSConstants.S_OK; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Sam, I see that GetColorizer is not being implemented (I see the same thing in Python Tools). What class is now doing the job of the IVsColorizer object?