![]() | File Templates |
Prev | Next |
The File Templates plugin allows you to create files based on other files. You can use any file as a template, which will create a copy of the file with an empty URL, or use a special template file which may contain macros to fill in information like your name and email address, the current date and environment variables, and position the cursor at a convenient position in the new file.
Furthermore, templates located in the template directories will be presented in the menu item File->From Template...
The plugin also provides a method to easily create a new template from an open document.
The template directories is part of the KDE file system, and consists of at least KDEDIR/share/applications/kate/plugins/katefiletemplates/templates and KDEHOME/share/applications/kate/plugins/katefiletemplates/templates. If your K DEDIRS enviroment variable contains additional directories, those are searched for a similar subdirectory as well. If equally named templates are found, the one in the local (KDEHOME) directory is chosen.
Presents you with Open File dialog that allows you to use any file as a template. If the chosen file has the extension katetemplate it will be parsed for template information and macros.
Presents a list of files recently used as templates, represented by their URL.
The remainder of submenus contains links to templates. Click a menuitem to create a file as described by the menu item text.
This will launch a dialog with a list of all templates found within the template directories, along with options to add, edit or remove templates.
Prev | Home | Next |
Text Filter | Up | Creating your own templates |