generatedata.com

Posted on Mar 15, 2012 in Fun Stuff, generatedata.com | 1 comment

I will, well and truly, cross-my-heart-and-hope-to-die (what a weird expression), return to generatedata.com in the coming months. I know I’ve said this half a dozen times, but this time I MEAN IT. Honest.

So, apologies to the people who’ve emailed me – I’ve logged all your bugs & feature suggestions and I’ll bring that site back from the grave. The new beta is freakin’ awesome and I really cannot believe I never got around to releasing it. My bad.

– Ben

Read More

PHP Smarty Template mode for CodeMirror 2

Posted on Mar 12, 2012 in Code, Form Tools, JavaScript, Open Source Projects | 2 comments

A Smarty syntax highlighter for CodeMirror has long been needed for my Form Tools script, so this weekend I finally took a few hours to put one together. It’s not been reviewed by the CodeMirror developer yet (Marijn Haverbeke), but will hopefully find its way into the main script at some point. I also plan on developing a HTML-JS-CSS-Smarty mixed mode, which will be useful in many places.

Example: http://www.benjaminkeen.com/misc/CodeMirror2/mode/smarty/

[UPDATE: Marijn accepted my changes and it’s now part of the CodeMirror repository].

[UPDATE 2: I added in Smarty 3 support in May, 2013].

Read More