source: trunk/plugins/InsertSnippet/readme.html @ 903

Last change on this file since 903 was 677, checked in by ray, 13 years ago

set svn:keywords property for the new files & all plugins

  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 1.4 KB
Line 
1<!DOCTYPE html
2     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
5<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6<head>
7  <title>InsertSnippet for Xinha</title>
8 
9<style type="text/css">
10  body { font-family: sans-serif; }
11  pre {border: dotted grey thin; background-color:LightYellow;padding:10px }
12  p { width:500px }
13  </style>
14</head>
15
16<body >
17<h1>InsertSnippet for Xinha</h1>
18<p>Insert HTML fragments in your document.
19
20</p>
21<h2>Usage</h2>
22<p>
23In order to use your own snippets you have to al least one parameter to your xinha_config:
24</p>
25<pre>
26xinha_config.InsertSnippet.snippets = _editor_url+"plugins/InsertSnippet/snippets.php";
27</pre>
28<p>
29The path above indicates the use of the provided backend. This parses a file that contains the snippets and
30should have the following format:
31</p>
32<pre>
33&lt;!--Snippet ID--&gt;
34Snippet content
35&lt;!--/Snippet ID--&gt;
36...and so on
37</pre>
38<p>
39You can use the snippets.html in the plugin folder or tell the backend where to find the file like this
40</p>
41<pre>
42with (xinha_config.InsertSnippet)
43{
44        &lt;?php
45
46        // define backend configuration for the plugin
47        $backend_data['snippets_file'] = '/file/containing/snippets.html';
48        require_once '../contrib/php-xinha.php';
49        xinha_pass_to_php_backend($backend_data);
50   
51        ?&gt;
52}
53</pre>
54
55<p style="font-size:80%">Raimund Meyer (xinha@raimundmeyer.de)</p>
56</body>
57</html>
Note: See TracBrowser for help on using the repository browser.