Updating css for word wrapping syntaxhighlighting
Updating issues with syntaxhighlighting and html tags
This commit is contained in:
@@ -84,8 +84,10 @@ class IDF_FileUtil
|
||||
$ext = self::$map[$fileinfo[2]];
|
||||
else
|
||||
$ext = "text";
|
||||
|
||||
$content = '<div id="highlight"><script type="syntaxhighlighter" class="brush: ' . $ext . '">' . $content . '</script></div>';
|
||||
if ($ext == "php" || $ext == "html" || $ext == "htm" || $ext == "js")
|
||||
$content = '<div id="highlight"><pre class="brush: ' . $ext . '">' . str_replace("<", "<", $content) . '</pre></div>';
|
||||
else
|
||||
$content = '<div id="highlight"><script type="syntaxhighlighter" class="brush: ' . $ext . '">' . $content . '</script></div>';
|
||||
return Pluf_Template::markSafe($content);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user