Updating css for word wrapping syntaxhighlighting
Updating issues with syntaxhighlighting and html tags
This commit is contained in:
parent
8a046e3c7e
commit
1a9c4132c2
@ -84,7 +84,9 @@ class IDF_FileUtil
|
|||||||
$ext = self::$map[$fileinfo[2]];
|
$ext = self::$map[$fileinfo[2]];
|
||||||
else
|
else
|
||||||
$ext = "text";
|
$ext = "text";
|
||||||
|
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>';
|
$content = '<div id="highlight"><script type="syntaxhighlighter" class="brush: ' . $ext . '">' . $content . '</script></div>';
|
||||||
return Pluf_Template::markSafe($content);
|
return Pluf_Template::markSafe($content);
|
||||||
}
|
}
|
||||||
|
@ -262,3 +262,7 @@
|
|||||||
/* Strings */
|
/* Strings */
|
||||||
.syntaxhighlighter .asmstring
|
.syntaxhighlighter .asmstring
|
||||||
{ color: #b0002d; font-weight: normal !important; }
|
{ color: #b0002d; font-weight: normal !important; }
|
||||||
|
|
||||||
|
body .syntaxhighlighter .line {
|
||||||
|
white-space: pre-wrap !important; /* make code wrap */
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user