Category Archives: Web Development

Textmate Tips & Tricks

Adding folding to CSS blocks in TextMate


Top tip for folding CSS according to comments such as:

/* start ContentBlock */

/* end ContentBlock */

  1. Added snippet called “sectionfold” to the Textmate CSS bundle:
    • Bundles -> Bundle Editor -> Show Bundle Editor
    • New Snippet, then paste in the following:
    • /* start ${1:section} */
      /* end $1 */
    • It gets activated by the tab trigger “sec” (or as you like), and set the scope selector to source.css.
  2. Modify the CSS language definition:
    • foldingStartMarker = '/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))|/\* start \w+ \*/';
    • foldingStopMarker = '(?<!\*)\*\*/|^\s*\}|/\* end \w+ \*/';

Losing my faith in Joomla?

I’m a big fan of open-source software, and more recently of open-source frameworks running on open-source software. CMS of the month for me has been Joomla, but I have to admit that the shine is wearing off.

One of the big pluses of Joomla is the countless numbers of extensions, modules,  and plugins available. Wonderful…if only they were long-lasting. I’ve seen so many launch strongly, then fade away – either due to lack of funds, or due to the developer’s success leading him/her to pastures new.

sh404SEF is a case in point – recently they have had huge problem with pagination in sh404SEF, and it’s been lasting long-enough to cause a lot of problems. An SEO plugin that doesn’t work consistently is a huge no-no.

Maybe it’s time I moved to WordPress…