views:

99

answers:

4

Caveat: I'm relatively new to coding as well as TextMate, so apologies if there is an obvious answer I'm missing here.

I do a lot of HTML/CSS markup, there are certain patterns that I use a lot, for example, forms, navigation menus etc. What I would like is a way to store those patterns and insert them quickly when I need them.

Is there a way to do this using TextMate?

+6  A: 
dF
+1  A: 

As mentioned prior snippets are what you are looking for.

For reference look here: http://manual.macromates.com/en/snippets
http://screenflicker.com/mike/code/div-snippets/

TonyLa
A: 

Thanks guys, Snippets sound like exactly what I was looking for.

Sam Murray-Sutton
+2  A: 

Along with the links provided above, I think you'll find this screencast useful. It gives a run through of some of the tools TextMate's HTML bundle already provides.

It's probably slightly off-topic though, but worth a look nonetheless.

Matt