magnets... i mean syntax highlighting, how do they work?

Figured I'd write about this as it's been the single thing holding me back from writing a blog in Squarespace. This method leverages Alex Gorbatchev's hosted SyntaxHighlighter. Hosted as in referencing the .js and .css files from somewhere else, info on that here. The below screen shot shows my Squarespace code injection config. This setup is pretty simple, but from googling around there are quite a few <style> modifications you can make. You can see below that I've specified the theme RDark (other themes available here). I've also pulled in the PowerShell brush (other brushes available here). You need to take note of the brush alias for later, PowerShells is "powershell" or "ps".

Once you have the code injection piece done, you can then leverage the javascript. Insert a code block, deselect display source, ensure HTML is selected, then open and close your code snippet with the script syntax as seen below. Since I'm interested in PowerShell I've set the brush to "ps". Note that the brush alias is case sensitive, this messed me up for about an hour :).

This is how it renders, wow.

Credit | References

http://iphonedev.tv/ (Paul Solt)