1. March 23, 2008

      FCKeditor and SyntaxHighlighter

      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 :P

      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.

    2. March 22, 2008

      CodeIgniter v1.6

      If you’re reading this, its because I’ve finally pushed my second revision of my site out the door, and had a bit of fun doing it.

      I really don’t know why I didn’t starting using CI earlier on. Its a dream to work with and would have solved a lot of my earlier problems, and only a slight performance hit over my own custom framework. MVC FTW!