require_once 'MTrack/SyntaxHighlight.php';
$contents = stream_get_contents($this->tmpfile);
$this->nlines = count(explode("\n", $contents));
- $this->data = $contents; //MTrack_SyntaxHighlight::highlightSource(
+
+ if (!empty($_REQUEST['markup'])) {
+ // we do a late version call for markup..
+ echo MTrack_SyntaxHighlight::highlightSource(
+ $contents , null, $this->file->name
+ );
+ exit;
+
+ }
+
+
+ $this->data = htmlspecialchars($contents); /* MTrack_SyntaxHighlight::highlightSource(
$contents , null, $this->file->name
);
+ */
//var_dump($this->data);
for ($i =0; $i < $this->nlines; $i++ ) {
$this->ann[] = (object) array(
default:
break; // download only..
}
-
+ if (!empty($_REQUEST['markup'])) {
+ $this->jerr("invalid request");
+ }
//
//$this->renderEvents();