# Configuring &quantaplus;

András
Mantia

    amantia@kde.org

# Configuring &quantaplus;

This chapter describes how you can control the behavior of &quantaplus;.

The configuration dialogs are accessible from the Settings menu. Here we will discuss only few of them, the rest are not &quantaplus; specific and a short description can be found at .

## Configuring Quanta

The configuration dialog can be invoked by using Settings Configure Quanta.... The dialog has several pages, we will discuss them one by one.

Tag Style

  You can change the behavior of &quantaplus; related to tags, including autocompletion. The entries are:

  - Tag case: the case of the automatically inserted tags. Default Case means the tags will be inserted as they are described in the tagXML files.

  - Attribute case: the case of the automatically inserted attributes. Default Case means the attributes will be inserted as they are described in the tagXML files.

  - Attribute quotation: how to quote attributes inserted by &quantaplus;.

  - Auto-close optional tags: if checked, tags for which closing tag is option will be automatically closed once the tag closing > is entered.

  - Auto-close non-single and non-optional tags: same as before for the rest of tags, exception being the single tags.

  - Use auto-completion: turn on/off the autocompletion of tags, attributes, functions, etc.

  - Update opening/closing tag automatically: if enabled, whenever you change the opening tag, the corresponding closing tag will be changed as well and vice-versa.

  - Automatic replacement of the accented characters: if enabled the accented characters will be replaced with their codes as you type.

Environment

  A page to control the environment and some default settings.

  - Mimetypes: mimetypes used to recognize different kind of files. Use the Reset to Default button to fill in the entries with the default settings.

  - Default character encoding: the encoding of the newly created files, or files loaded in other way than File Open (where you can override the encoding). This setting is overridden by the same setting in the Project Properties if a project is loaded.

  - Default DTD: the DTD used for newly created files, or files whose DTD was not recognized. This setting is overridden by the same setting in the Project Properties if a project is loaded.

  - Create backups: &quantaplus; will create backup files periodically, so in case of power failure or crash, on the next startup the document can be restored from this backup. This is not the same as the backup created on file save. Even for not-yet saved documents there is a backup created.

  - Startup Options: self explanatory setting which control what will happen on startup.

User Interface

  Here you can control the look and feel of &quantaplus;.

  The preview and the documentation can appear in the editor area or in a separate toolview, in which case it's possible to look at the documentation/preview and the source as well.

  It's also possible to configure the look of the toolview and document tabs.

  Reset window layout to the default on the next startup is useful when you have messed up the user interface by changing the MDI modes and docking/undocking the toolviews. It is the same as the `--resetlayout` command line switch.

  This is the place also to control the behavior of the file trees.

  The Warning Messages section is useful to enable or disable the warning messages that can be dismissed by checking the Do not show again box in them.

VPL View

  The place to change the &VPL; behavior. You can enable the showing of an icon in place of scripts as well as configure the synchronization of the VPL and source view when the splitted mode is activated. See to learn how to activate the different modes.

Parser

  Here you can fine-tune the parser and the structure tree, which is the visual representation of the parser nodes in the document.

  In the Clicks on Structure Tree Items it is possible to change the actions assigned to mouse buttons when you click on the structure tree.

  In the Structure Tree Look & Feel it is possible to configure what kind of nodes are visible in the tree, how often is the tree updated while editing and on an update how deeply should be the structure tree automatically opened. Empty nodes are the white-space text nodes, while empty groups are groups for whom there was no element found in the current document.

Abbreviations

  The place to define abbreviations (some kind of templates), that can be expanded to bigger text while editing. Abbreviations are organized in groups, each group can be valid for more than one &DTEP;. This means you can have a group valid for PHP where the "ifclause" abbreviation template means something else than in a group valid for JavaScript.

## Configuring Actions

User defineable action creation and editing is described in .

## Configuring Plugins

Here you can manage your plugins. Plugins are KPart applications written by third parties that can be reused in any KPart aware application, the most known being &konqueror;. When creating a plugin you must specify the:

- Name: the user visible name

- Output window: plugins can appear in a tab of the editor area or in a separate toolview at the bottom

- Location: the path to the plugin, if it is not located in the standard locations, like `$`KDEDIR`/lib` .

- File name: the relative path and the filename to the plugin's libtool file, like `kde3/libcervisiapart.la`

- Input: the plugin will get this information on startup, so it can open the Current File, the folder of the current file (Current File Path) or the Project Folder.

- Read only part: check if the plugin refuses to load. Read-only KParts usually refuse to load without this option checked.

- Validate plugin: if checked, &quantaplus; will test if the entered information is correct or not. Uncheck if the plugin is not yet available, but you will install later, so you can close the dialog.

See and for information about using the plugins.