The Code Snippet dropdown of CuteEditor by default displays a predefined set of
Code Snippets. You can easily modify this default set using the following
methods.
|
1: Edit Dropdown Configuration file (Common.config). You can modify the Codes element to create your own Code Snippet list. Example:
<item text="Email signature" value="Email signature"></item> <item text="Contact us" value="Contact us"></item>
</Codes> Now the Code Snippet dropdown contains the followings:
|
|
<%
Dim editor Set editor = New CuteEditor editor.ID = "Editor1" 'Programmatically populate the Code Snippet dropdown. editor.CodeSnippetDropDownMenuNames = "Email signature, Contact us" editor.CodeSnippetDropDownMenuList = "Email signature, Contact us" editor.Text = "Hello World" editor.Draw() %>
|