Written
July 02, 2011
Try changing the line:
bufferAdapter = m_EditorAdapterFactory.CreateVsTextBufferAdapter(oleServiceProvider, bufferFactory.TextContentType);
to:
var _contentTypeRegistryService = m_componentModel.GetService<IContentTypeRegistryService>();
var types = _contentTypeRegistryService.GetContentType("C/C++");
bufferAdapter = m_EditorAdapterFactory.CreateVsTextBufferAdapter(oleServiceProvider, types);
This will give the editor window C/C++ style syntax highlighting. You can also use "CSharp" IIRC.
Hope that helps,
-M