It is not possible to assign a hotkey or a chord (fast typed sequence of keys) to a HTML toolbar user command, only to the standard HTML toolbar commands. But you can use
templates. Templates are very similar to the HTML toolbar commands.
The differences are:
- Templates are stored in a binary file instead of uedit32.ini (or registry). But all templates in the template file are automatically loaded when starting of UltraEdit like the HTML toolbar commands. Changing the directory for the template file gives the possibility to quickly selected a different list of templates for example for a completely other project.
- The character used for marking the cursor position is different. In templates the character ^ must be used while in HTML toolbar commands the character | must be used to mark the cursor position or the position where the selected text should appear after inserting the template or HTML toolbar command.
- For all of the up to 50 templates (0-49) a hotkey or chord can be configured at Advanced - Configuration Key Mapping. The commands are InsertTemplatex with x = 0...49. But a hotkey or a chord can be assigned only for the standard HTML toolbar commands, not for the HTML toolbar user commands.
- Templates can be inserted also during a macro or script execution, but not the HTML toolbar commands.
- For HTML toolbar commands an icon or bitmap can be specified, but not for templates (not directly). Also the HTML toolbar commands support a customized tooltip, but not templates. So the usage of HTML toolbar commands is often the better choice for the usage in a toolbar.
- Some standard HTML toolbar commands which can be nevertheless customized are supported with special built-in code like the bulleted or order list. On the other hand for templates some special template strings are available to customize date/time strings or file names.
The first 10 templates can be also inserted directly from the menu
Insert, the others via
Insert Template. The first 10 templates can be also added to a customized toolbar. All 50 templates can be inserted with a double click on the template name in the template list view opend with a click on
View - Views/Lists - Template List. With a right click on the template list view a context menu opens which shows you 2 items for modifying or inserting a template.
See the IDM power tip
Custom user-defined templates how to define templates. But before you first time open this dialog to define your first template, open
Advanced - Configuration - Directories and specify the directory where the template file should be stored. A good place would be the directory of uedit32.ini. You can see the path of uedit32.ini at
Advanced - Configuration - Application Layout - Advanced. It is for UE v14.20 by default something like:
C:\Documents and Settings\
username\Application Data\UltraEdit\