September 2007 Archives
I spent a little free time and added AS3 support to SyntaxHighlighter.
According to Alex Gorbatchev (the creator of SyntaxHighlighter) it should be added to the next release. But until then, you can download the source here.
It's pretty straight forward to use, but just in case:
1) Download the latest SyntaxHighlighter source.
2) Download my AS3 extension.
3) Place the compressed script in SyntaxHighlighter's Scripts directory.
4) Replace the css file in SyntaxHighlighter's Styles directory if you like my version of the code block more than the default.
5) Upload the SyntaxHighlighter directory to your server.
6) At the minimum, add the following to your head tag (pointing to wherever you have placed your js, css and flash files):
<link type="text/css" rel="stylesheet" href="css/SyntaxHighlighter.css"></link>
<script language="javascript" src="js/shCore.js"></script>
<script language="javascript" src="js/shBrushAS3.js"></script>
<script language="javascript" src="js/shBrushXml.js"></script>
<script language="javascript">
window.onload = function () {
dp.SyntaxHighlighter.ClipboardSwf = 'flash/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
}
</script>
7) Create a pre block similar to the following:
<pre name="code" class="actionscript">
... some code here ...
</pre>
As you can see, I'm not actually using SyntaxHighlighter with Movable Type yet, but once I get that figured out, I'll let you know.
It might not look like much of a difference, but digitalflipbook has been rebuilt from the ground up.
Movable Type 4 came out last month and I finally got around to updating my site.
MT always allows for an easy upgrade process, but this latest version is quite a departure from their previous versions. To fully take advantage of all of the new capabilities and features, you can't do a simple update. Instead, I had to backup my original and then build my site again from scratch using the new features.
Its been quite a headache, but I am finally much happier with what's behind-the-scenes.
Before, the css was all over the place, but now I've made a digitalflipbook theme. What this means is that all of the specific site styles and images are in a completely separate directory and if I want, I can now completely change the look of the site with the press of a button, but maintain the structure.
Another reason for the upgrade was that I was getting inundated with spam comments and needed a better way of managing them. MT4 is now built in with CAPTCHA support and allows for additional CAPTCHA plugins. I decided to go with reCAPTCHA, which so far seems great.
I did quite a bit of testing before replacing the previous site, but issues can always arise. If you notice anything, please let me know and use that updated comment system down there. :)