Showing posts with label SyntaxHighlighter. Show all posts
Showing posts with label SyntaxHighlighter. Show all posts

Wednesday, January 25, 2012

SyntaxHighLighter with java and generics

In order to use SyntaxHighLighter with java code containing generics, you first need to have all < and > being replaced with &lt; and &gt;
This can be done automatically by this online HTML encoder.

Saturday, January 21, 2012

SyntaxHighlighter splits my source code

My first install of SyntaxHighlighter in Blogger was splitting my source code like this:

This was due to my using some Blogger CSS customization for the <code> tag:
code {
    ...
    display: block;
}

Superfluous vertical scrollbars in SyntaxHighlighter

Add this to the Blogger CSS:
.syntaxhighlighter {
    padding: 1px !important;
}

SyntaxHighlighter in Blogger

This article says it all. The site also generates the lines to add in Blogger template.