docs.kde.org
Open & Save
Prev
Next

Open & Save

General

File Format
Encoding:

This sets the default character encoding for your files.

Encoding autodetection

Select an item from the drop down box, either to disable autodetection or use Universal to enable autodetection for all encodings. But as this may probably only detect utf-8/utf-16, selecting a region will use custom heuristics for better results.

End of line:

Choose your preferred end of line mode for your active document. You have the choice between UNIX®, DOS/Windows® or Macintosh.

Automatic end of line detection

Check this if you want the editor to autodetect the end of line type. The first found end of line type will be used for the whole file.

Automatic Cleanups on Load/Save
Remove trailing spaces

The editor will automatically eliminate extra spaces at the ends of lines of text while loading/saving the file.

Advanced

Folder Config File
Search depth for config file:

The editor will search the given number of folder levels upwards for KWrite config file and load the settings line from it.

Backup on Save

Backing up on save will cause KWrite to copy the disk file to <prefix><filename><suffix> before saving changes. The suffix defaults to ~ and prefix is empty by default.

Local files

Check this if you want backups of local files when saving.

Remote files

Check this if you want backups of remote files when saving.

Prefix

Enter the prefix to prepend to the backup file names.

Suffix

Enter the suffix to add to the backup file names.

Modes & 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.

Highlighting:

If you create a new file type, this drop down box allows you to select a filetype for highlighting.

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.

Download Highlighting Files...

Click this button to download new or updated syntax highlight descriptions from the Kate website.

Prev
Next
Contents


docs.kde.org