Filetypes
Prev
Next

Filetypes

This page allows you to override the default configuration for documents of specified mimetypes. When the editor loads a document, it will try if it matches the file masks or mimetypes for one of the defined filetypes, and if so apply the variables defined. If more filetypes match, the one with the highest priority will be used.

Filetype:

The filetype with the highest priority is the one displayed in the first drop down box. If more filetypes were found, they are also listed.

New

This is used to create a new filetype. After you click on this button, the fields below get empty and you can fill the properties you want for the new filetype.

Delete

To remove an existing filetype, select it from the drop down box and press the Delete button.

Properties of current filetype

The filetype with the highest priority is the one displayed in the first drop down box. If more filetypes were found, they are also listed.

Name:

The name of the filetype will be the text of the corresponding menu item. This name is displayed in the Tools->Filetypes

Section:

The section name is used to organize the file types in menus. This is also used in the Tools->Filetypes menu.

Variables:

This string allows you to configure KWrite's settings for the files selected by this mimetype using KWrite variables. You can set almost any configuration option, such as highlight, indent-mode, encoding, etc.

For a full list of known variables, see the manual.

File extensions:

The wildcards mask allows you to select files by filename. A typical mask uses an asterisk and the file extension, for example *.txt; *.text. The string is a semicolon-separated list of masks.

MIME types:

Displays a wizard that helps you easily select mimetypes.

Priority:

Sets a priority for this file type. If more than one file type selects the same file, the one with the highest priority will be used.

Prev
Next
Home


Would you like to comment or contribute an update to this page?
Send feedback to the TDE Development Team