I'm building a set of snippets and things for some of the Radiant extension coding I do for TextMate and thought I'd share the first one for anyone who wants to start thinking up more along with me:
=== SNIP === desc %{ ${1:Tag description for Radiant tag reference.}} tag "${2:tagname}" do |tag| ${3:tag.expand} end === SNIP === Just open TextMate, go to the Bundles Menu and under the Bundle Editor choose Edit Snippets. Then using the "Add" button in the lower left corner of the Bundle Editor window choose 'New Snippet.' Give it a name, I liked Define Radiant Tag, and then in the editing pane copy everything between the SNIPs from above over the Syntax Summary. I gave mine a tab trigger of 'tag' and you're done. Now I just type tag, hit tab, enter my description, hit tab again, given the tag a name and hit tab one last time and start coding. Enjoy! -James _______________________________________________ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant