Commit 1ecc7752 by Carsten Brandt

removed newline from php highlighting

parent ea7e576e
...@@ -37,7 +37,7 @@ class ApiMarkdown extends Markdown ...@@ -37,7 +37,7 @@ class ApiMarkdown extends Markdown
if (strncmp($block['text'], '<?php', 5) === 0) { if (strncmp($block['text'], '<?php', 5) === 0) {
$text = highlight_string(trim($block['text']), true); $text = highlight_string(trim($block['text']), true);
} else { } else {
$text = highlight_string("<?php\n".trim($block['text']), true); $text = highlight_string("<?php ".trim($block['text']), true);
$text = str_replace('&lt;?php', '', $text); $text = str_replace('&lt;?php', '', $text);
} }
// remove <code> tags added by php // remove <code> tags added by php
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment