SyntaxHighlighter/Upgrading
From Alex Gorbatchev
[edit] Upgrading from 1.5 to 2.0
If you have been using SyntaxHighlighter 1.5 for some time now, you already have a lot of content with integrated highlighter <pre /> tags configured the old 1.5 way. In order to maintain backward compatibility and allow you to move forward with the version 2.0, you can use transition proxy provided in the shLegacy.js file.
shLegacy.js creates a proxy call compatible with 1.5. A call to dp.SyntaxHighlighter.HighlightAll('code') is smoothly converted to a proper call to SyntaxHighlighter.all() together with 1.5 configuration options like class="html:collapse" to 2.0 compatible on the fly.
[edit] How to
To get both 1.5 and 2.0 highlighter elements to work on your site, you have to add shLegacy.js and keep the call to HighlightAll:
<html>
<head>
<link type="text/css" rel="stylesheet" href="/Styles/shCore.css" />
<link type="text/css" rel="stylesheet" href="/Styles/shThemeDefault.css" />
<script type="text/javascript" src="/Scripts/shCore.js"></script>
<script type="text/javascript" src="/Scripts/shLegacy.js"></script>
<script type="text/javascript" src="/Scripts/shBrushJScript.js"></script>
<script type="text/javascript" src="/Scripts/shBrushBash.js"></script>
<script type="text/javascript" src="/Scripts/shBrushCpp.js"></script>
<script type="text/javascript">
SyntaxHighlighter.all();
dp.SyntaxHighlighter.HighlightAll('code');
</script>
</head>
...