UEStudio integrated development environment tour: templates
The UEStudio tour is intended to guide you through some of the advanced IDE features of the application. UEStudio includes all of the features of UltraEdit, the world's best text editor, which are not covered here.
Do you find yourself repeatedly using the same chunks of text or source code? UEStudio offers you a simple means to reuse this text rather than creating it from scratch every time it's required. Templates are predefined text that may be recalled automatically at a later time and inserted into a file. Select Display/Modify Templates from the advanced menu to display the dialog for editing the templates.

Up to 50 templates may be defined. Each of the first 20 templates may be recalled at a later time using hot keys Alt+0 through Alt+9, and Shift+Alt+0 through Shift+Alt+9, or any of the templated may be recalled with the insert template dialog.

Each template may optionally have a name associated with it, that if defined will show up on the tool tips on the toolbar and in the list of templates when inserting a template.
The templates are stored in a file in the default directory or the directory specified in the Advanced -> Configuration -> Directories panel.
A template may contain special text strings that are translated at the time the template is recalled. These special strings are:
| String | Meaning |
| [DATE_DMY] | Is translated into the current date with the format DAY/MONTH/YEAR. |
| [DATE_MDY] | Is translated into the current date with the format MONTH/DAY/YEAR. |
| [DATE_TEXT] | Is translated into the current date with the date displayed as text. |
| [TIME] | Is translated into the current time IN 24 HOUR FORMAT. |
| ^ | This indicates the position at which to place the cursor after the template has been inserted. |
| [FULL_FILE_NAME] | Is translated into the full path and filename of the active document. |
| [FILE_PATH] | Is translated into the drive and path of the active document. |
| [FILE_NAME] | Is translated into the root filename of the active document. |
| [FILE_EXTENSION] | Is translated into the file extension of the active document. |
| [$REPLACE$] | Is replaced with selected text in the active document. The selection will be converted to uppercase text when inserted with the template. |
| [$replace$] | Is replaced with selected text in the active document. The selection's current case will be maintained when it is inserted with the template. |
Note - ^ refers to the character '^' NOT control key + value.
Additionally, for extended date and time formatting, UEStudio supports the following enhanced functionality:
Time
To specify the USER TIME format use the following syntax in your template:
For local time use the following markers:
[TIME_USER]...time format string here...[TIME_USER_END]
For system time use the following markers:
[TIME_USER_SYS]...time format string here...[TIME_USER_SYS_END]
The time format string is defined as follows:
If you use spaces to separate the elements in the format string, these spaces will appear in the same location in the template. The letters must be in uppercase or lowercase as shown (for example, "ss", not "SS"). Characters in the format string that are enclosed in single quotation marks will appear in the same location and unchanged in the template.
| String | Meaning |
| h | Hours with no leading zero for single-digit hours; 12-hour clock |
| hh | Hours with leading zero for single-digit hours; 12-hour clock |
| H | Hours with no leading zero for single-digit hours; 24-hour clock |
| HH | Hours with leading zero for single-digit hours; 24-hour clock |
| m | Minutes with no leading zero for single-digit minutes |
| mm | Minutes with leading zero for single-digit minutes |
| s | Seconds with no leading zero for single-digit seconds |
| ss | Seconds with leading zero for single-digit seconds |
| t | One character time marker string, such as A or P |
| tt | Multicharacter time marker string, such as AM or PM |
For example, to get the time string
11:29:40 PM
...use the following format string:
hh':'mm':'ss tt
This string MUST be between the markers, for example:
[TIME_USER]hh':'mm':'ss tt[TIME_USER_END]
Date To specify the USER TIME format use the following syntax in your template:
For local date use the following markers:
[DATE_USER]...date format string here...[DATE_USER_END]
For system date use the following markers:
[DATE_USER_SYS]...date format string here...[DATE_USER_SYS_END]
The date format string is defined as follows:
Use the following elements to construct a format string. If you use spaces to separate the elements in the format string, these spaces will appear in the same location in the template. The letters must be in uppercase or lowercase as shown in the table (for example, "MM" not "mm"). Characters in the format string that are enclosed in single quotation marks will appear in the same location and unchanged in the template.
| String | Meaning |
| d | Day of month as digits with no leading zero for single-digit days. |
| dd | Day of month as digits with leading zero for single-digit days. |
| ddd | Day of week as a three-letter abbreviation. |
| dddd | Day of week as its full name. |
| M | Month as digits with no leading zero for single-digit months. |
| MM | Month as digits with leading zero for single-digit months. |
| MMM | Month as a three-letter abbreviation. |
| MMMM | Month as its full name. |
| y | Year as last two digits, but with no leading zero for years less than 10. |
| yy | Year as last two digits, but with leading zero for years less than 10. |
| yyyy | Year represented by full four digits. |
For example, to get the date string
Wed, Aug 31 94
use the following format string:
ddd',' MMM dd yy
This string MUST be between the markers, for example:
[DATE_USER]ddd',' MMM dd yy[DATE_USER_END]
Classviewer
IntelliTips
Compile
Debug
Integrated debugger
Batch builder
Build project
Resource editor
User tools
Run DOS commands
Diff/comparison tool
Macros
Integrated scripting
Code style
SVN/CVS support
HTML validation
HTML preview
FTP/SFTP/FTPS
Javascript Lint
PHP support
PHP debugging
Ruby support


Workspace manager
Project manager
Projects/solutions
Project converter
Templates
Project templates
Column/block editing
Syntax highlighting
Function list
Output window







