MantisBT - ATutor
View Issue Details
0003680ATutor- no cat -public2008-12-19 07:212009-07-21 08:49
greg 
greg 
normalminoralways
closedfixed 
 
1.6.3 
SVN
0003680: html code highlighting
A hack to trick php into using code higlighting without using the php tags.

In output.inc.php before the [code] tags are replaced

$text = str_replace("[code]","[code]<?php",$text);
$text = str_replace("[/code]","?>[/code]",$text);

The after the preg_replace add
$text = str_replace("<?php", "", $text);
$text = str_replace("?>", "", $text);
There's got to be a better way. What HTML sysntax highlighters are available?
No tags attached.
Issue History
2008-12-19 07:21gregNew Issue
2008-12-19 07:21gregAffects version => SVN
2009-03-11 10:44gregStatusnew => assigned
2009-03-11 10:44gregAssigned To => greg
2009-03-11 10:45gregStatusassigned => resolved
2009-03-11 10:45gregResolutionopen => fixed
2009-03-11 10:45gregNote Added: 0003498
2009-06-12 09:31gregStatusresolved => new
2009-06-12 09:34gregStatusnew => resolved
2009-06-12 09:34gregFixed in Version => 1.6.3
2009-07-21 08:49gregStatusresolved => closed

Notes
(0003498)
greg   
2009-03-11 10:45   
added hack to remove <?php ?> from highlighted code so highlighting can be used for code other than php.