TextMate Snippet to Strip Table Tags 06 January 2011

  1. Select Bundle Editor \ Edit Snippets from the Bundles menu in TextMate
  2. Click the + button in the bottom left corner and select New Snippet, give it a name
  3. Paste this: ${TM_SELECTED_TEXT/<\/?(table|tr|td|th)(\s?[^>]*)>//ig}

Select the table code in your document and run the snippet – all table tags will be removed and the world will be a better place.

comments powered by Disqus