In order to use SyntaxHighLighter with java code containing generics, you first need to have all < and > being replaced with < and >
This can be done automatically by this online HTML encoder.
Showing posts with label SyntaxHighlighter. Show all posts
Showing posts with label SyntaxHighlighter. Show all posts
Wednesday, January 25, 2012
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:
This was due to my using some Blogger CSS customization for the <code> tag:
code {
...
display: block;
}
Labels:
blogger,
SyntaxHighlighter
Superfluous vertical scrollbars in SyntaxHighlighter
Add this to the Blogger CSS:
.syntaxhighlighter {
padding: 1px !important;
}
Labels:
blogger,
SyntaxHighlighter
SyntaxHighlighter in Blogger
This article says it all.
The site also generates the lines to add in Blogger template.
Labels:
blogger,
SyntaxHighlighter
Subscribe to:
Posts (Atom)