1

I have recently installed a fresh copy of BlogEngine 2.7. I have been trying to add a new post with some c# code on it, and I wanted to use the Syntax Highlighter extension on my post. This is the code I have:

<pre class="brush: c-sharp;">
using System;
</pre>

But even adding such a simple c# statement is causing the code in my post to look not well formatted:

enter image description here

Just imagine how it looks with a lot of code.

I have tried many different things (downloading different versions of the extension, and people's fixes) without any success. I am using the CoolBlue theme, which I think is causing this problem.

Have any of you run into this problem? Could you perhaps guide me in the right direction?

1 Answer 1

2

I was able to reproduce it locally and track the problem down to coolblue.css.

If you still want to fix it, modify the coolblue.css and add the following lines to the end of the file:

.syntaxhighlighter code {
    display: inline-block;
}

This will reset code elements that live inside a syntax highlighter into inline elements.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.