ProvideLanguageServiceAttribute::SupportCopyPasteOfHTML Property
Visual Studio 2015
Determines if the language service supports the clipboard format HTML for copy and paste operations.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
Property Value
Type: System::BooleanReturns true if the HTML clipboard format is supported, otherwise, returns false.
A language service can support additional clipboard formats beyond what Visual Studio supports and one common format is HTML. If a language service explicitly supports copying to HTML and pasting from HTML, then it should set the SupportCopyPasteOfHTML property to true. This mean the language service can convert the contents of a source file to and from HTML.
This property is available to any language service implementation.
The default is false indicating the HTML clipboard format is not supported.
The registry entry looks like this:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\[X.Y]\Languages\Language Services\
[Language Name]\
Support CF_HTML = reg_dword: 0x00000001
[ProvideLanguageService(typeof(MyLanguageService), // Required MyConstants.languageName, // Required MyConstants.languageNameResourceID, // Required // Optional language service properties SupportCopyPasteOfHTML = true, // HTML clipboard format supported )]
Show: