/[ascend]/trunk/tools/mediawiki/ashighlight.test.php
ViewVC logotype

Contents of /trunk/tools/mediawiki/ashighlight.test.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1390 - (show annotations) (download)
Mon Apr 16 06:19:43 2007 UTC (15 years, 7 months ago) by jpye
File size: 284 byte(s)
Moved support files for variouso outside 'tools' into their own folder together.
1 <?php
2
3 require_once("ashighlight.class.php");
4
5 $text = "MODEL test; END test;";
6 $lang = "a4c";
7
8 $p = new ASHighlight();
9
10 $p->parse_code($text,$lang);
11
12 if($p->error){
13 print "parse_code returns error:";
14 die($p->errmsg);
15 }
16
17 print "output...\n";
18 print $p->out;
19 print "...output\n";
20
21 ?>

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22