source: branches/ray/plugins/InsertSnippet/snippets.php @ 892

Last change on this file since 892 was 892, checked in by ray, 12 years ago

update branch with changes from trunk

File size: 418 bytes
Line 
1<?php header("Content-type: text/xml");
2print '<?xml version="1.0" encoding="UTF-8"?>'."\n";
3?>
4<snXML>
5<categories>
6<?php
7foreach ($categories as $c) {
8        print '<c n="'.$c.'" />'."\n";
9}
10
11?>
12</categories>
13<snippets>
14<?php
15foreach ($snippets as $s) {
16        print '<s n="'.$s['name'].'" v="'.$s['varname'].'" c="'.$s['category'].'">
17<![CDATA[
18        '.$s['html'].'
19]]>
20</s>'."\n";
21}
22?>
23</snippets>
24</snXML>
Note: See TracBrowser for help on using the repository browser.