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

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

update branch

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