The Maple Templates provides a system of templates
for adding common fragments of Maple code.
Inside a Maple source file, enter
Ctrl+Space. This should bring up the template
choices, as shown below.
Adding a new template
You can add to the list of templates by using the Template page
of the Maple preferences.
Open the Maple > Templates preference page.
Select the New... button. The Add Template wizard opens.
Enter the name and description for your template.
Select the context that determines where a template is available.
Enter patter of your template and click OK.
Editing templates is a simple process, and you can edit templates that you create, as well as predefined templates.
Navigate to the Maple > Environments preferences page.
Select the template you want to edit. You should be looking at the same window you saw when you created a template.
Editing the template is simply a matter of changing the values for any of the fields you desire and clicking OK.
If you change the name of the template, you should see the following window:
If your intention is to rename the existing template, simply click No and you're done.
If you click Yes a copy of the existing template is saved with the new name.
Deleting a template
Deleting a template is as simple as selecting it in the templates data grid in the Preferences pane and clicking Remove