ProvideLanguageServiceAttribute.SupportCopyPasteOfHTML Property

Definition

Determines if the language service supports the clipboard format HTML for copy and paste operations.

public:
 property bool SupportCopyPasteOfHTML { bool get(); void set(bool value); };
public:
 property bool SupportCopyPasteOfHTML { bool get(); void set(bool value); };
public bool SupportCopyPasteOfHTML { get; set; }
member this.SupportCopyPasteOfHTML : bool with get, set
Public Property SupportCopyPasteOfHTML As Boolean

Property Value

Returns true if the HTML clipboard format is supported, otherwise, returns false.

Examples

[ProvideLanguageService(typeof(MyLanguageService),           // Required  
                        MyConstants.languageName,            // Required  
                        MyConstants.languageNameResourceID,  // Required  
    // Optional language service properties  
    SupportCopyPasteOfHTML = true,  // HTML clipboard format supported  
                       )]  

Remarks

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  

Applies to