10.02.2013 Views

SlickEdit User Guide

SlickEdit User Guide

SlickEdit User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CODE TEMPLATES<br />

• Templates - Lists the templates for the currently selected category. When you select a template,<br />

you are able to edit its properties in the lower half of the dialog.<br />

• Template file - File name of the currently selected template.<br />

Details Tab<br />

The Details tab of the Template Manager dialog contains the following:<br />

• Name - Specifies the name for the template item. The name is used in the Templates list of the<br />

Add New Item dialog.<br />

• Description - Specifies the description for the template item. The description is displayed on the<br />

Add New Item dialog when the template is selected.<br />

• Default name - Specifies the default item name when using the Add New Item dialog box.<br />

• Sort order - Specifies an order number that is used to sort the template item in relation to other<br />

template items in a list. Used to sort template items in a category on the Add New Item dialog box.<br />

Lower sort orders are placed ahead of higher sort order values in a sorted list.<br />

Files Tab<br />

Use the Files tab of the Template Manager dialog to add, edit, order, and delete files in a template. Files<br />

are created from a template when using the Add New Item dialog, as when adding an item template to a<br />

project.<br />

Add, Edit, Order, and Delete operations are accessible from the buttons on the right side or from the<br />

context menu inside the list of files.<br />

Custom Parameters Tab<br />

Use the Custom Parameters tab of the Template Manager dialog to add, edit, and delete substitution<br />

parameters in a template. Substitution parameters are used to replace parameter names in the content of<br />

files created from a template with a pre-defined value. Substitution parameters can also be used to form<br />

target file names (Files tab).<br />

Add, Edit, and Delete operations are accessible from the buttons on the right side or from the context<br />

menu inside the list of parameters.<br />

Template Options Dialog<br />

Use this dialog to edit options that are common to all templates. You can launch this dialog from the<br />

Template Manager dialog by clicking the Options button.<br />

Global Substitution Parameters<br />

The Global substitution parameters area on the Template Options dialog lists the substitution<br />

parameters that are common to all templates. A common substitution parameter, for example, could be<br />

“author” where the parameter value is your name. You could then create code templates that automatically<br />

fill in a header comment with the author's (your) name.<br />

Add, Edit, and Delete operations are accessible from the buttons on the right side or from the context<br />

menu inside the list of parameters.<br />

<strong>SlickEdit</strong>® <strong>User</strong> <strong>Guide</strong> 245

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!