I have this code.
<pre class="brush: xml"><?xml version="1.0" encoding="utf-8"?>
<Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ABC>
<A>B</A>
</ABC>
</Test></pre>
And this javascript.
<script type="text/javascript">SyntaxHighlighter.all();</script>
Before that I loaded:
And the css:
But it looks like:

The problem is that the first line is between line 1 and 2. The margin issnt correct or something else!? I dont know. With FireBug I cant find the problem :(
And by the way... Is it possible to disable/hide the "?" button on the top right corner?
Fiddle example (bad parsing!?): http://jsfiddle.net/Zrm2G/
I believe the issue has to do with the SyntaxHighlighter using class="container" which has a name collision with BootStrap.
In particular, bootstrap.css adds the following, which is putting the margin in before our displayable content:
.container:before, .container:after {
display: table;
content: "";
line-height: 0;
}
I resolved this by overriding this css in my sites main css file when the container class is used within the SyntaxHighlighter table:
.syntaxhighlighter table .container:before {
display: none !important;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With