====== Formatting styles ======

At the moment zim can apply only one formatting style to any piece of text. This means that you can not make text bold //and// italic at the same time. Also you can not make links bold or italic.

See [[syntax]] if you want to know how this formatting is saved in the text files.

===== Stylesheet =====
Zim has certain defaults on how to display styles. For example it displays links as blue text without underline. Once you export content from zim to other formats, only the name of the style is kept. The various formats may have their own conventions on how to display these styles. In the html output for example you can work with stylesheets to change the look.

Zim also uses a kind of stylesheet to configure how the various styles look in the editor. To change this style copy "''/usr/share/zim/style.conf''" to "''~/.config/zim/''" and edit it. Each style has it's own section which starts with the style name between square brackets and contains key value pairs for the various display properties.

Example:

	[bold]
	weight = PANGO_WEIGHT_BOLD

	[italic]
	style = italic

Known properties:

* **family**: ''monospace'', ''sans'', ...
* **foreground**: ''grey'', ''blue'', ''#cccccc'', etc.
* **background**: ''yellow'', ''#cccccc'', etc.
* **weight**: ''PANGO_WEIGHT_BOLD'', ...
* **scale**: //integer//
* **style**: ''italic'', ...
* **underline**: ''single'', ...
* **striketrough**: ''true'', ''false''
* **wrap**_**mode**: ''none'', ...
* **indent**: //integer//

==== Export to HTML ====
The display styles for the GUI are not used when exporting to HTML. If you want your HTML to show certain custom styles you should write a HTML [[exporting|template]] with a CSS stylesheet.
