Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Artifact ID: | d2e1b98b5043ba7ec8e41182b4eca87f17445248 |
---|---|
Page Name: | Filters |
Date: | 2019-02-11 07:13:17 |
Original User: | tinus |
Mimetype: | text/x-markdown |
Parent: | b500f4d71cd09a313a9cdcfe9fb3f1027bc2f8ff (diff) |
Next | 097fd1061e4cfdb190d8d4b6251a3c285b8f5bc8 |
Filters
By default, the preview plugin only displays a preview of HTML or XML files — and for XML files, only when they contain a processing-instruction for a stylesheet.
Filters are a way to pre-process other files than HTML or XML so they can be previewed.
Definition
Filters are defined in a special filters.ini
file in the Config directory. From version 1.3 of the plugin, there's a menu option to open the filter configuration file.
Example
Check out the sample filter definition in the plugin's Config
directory:
<iframe src="raw?ci=publish&filename=Config/PreviewHTML/filters.sample.ini&m=text/plain" style="width:98%;bottom:0px" onload="this.style.height=this.contentDocument.body.scrollHeight +'px';"></iframe>