Code Snippet dropdown Customization
Code Snippet dropdown Customization
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).
The dropdown configuration file (Common.config) can be found in the
CuteEditor_Files/Configuration/Shared folder. In dropdown configuration file
you can find the Codes element which contains the configuration
information for the Code Snippet dropdown within Cute Editor.
You can modify the Codes element to create your own Code Snippet list.
Example:
- <Codes>
- <item text="Email signature" value="Email signature"></item>
- <item text="Contact us" value="Contact us"></item>
- </Codes>
2. Programmatically populate the Code Snippet dropdown
Example:
- <%
- 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()
- %>