Note: This applied to my old, CodeIgniter based blog, and so is no longer valid…
As I edit my site, I’ll be posting little code snippets that helped me, and might help you as well. If it seems a bit vege, tough, deal with it
So,as I’ll be often posting code snippets, I’m adding SyntaxHighlighter, a small, free JavaScript tool to stylise my code. But, I want to be able to post this in easily, using FCKeditor. So, I added this to my fckstyles.xml file:
<attribute name="name" value="code" /> <attribute name="class" value="c-sharp" /> <attribute name="name" value="code" /> <attribute name="class" value="php" /> <attribute name="name" value="code" /> <attribute name="class" value="sql" />
Nothing fancy, but it works well. And, as an added bonus, FCKeditor will automatically convert the <’s to < for me, as required by SyntaxHighliter.

