Posted By

tmmyy on 03/27/11


Tagged

textmate


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jarc100


TextMate HTML5 comment style banner


 / Published in: Other
 

Banner style found in HTML5 boilerplate. Copy and paste this in Bundle Editor and add a hotkey for it.

/* 
 // ================================== \\
||                                      ||
||   HTML5 Boilerplate Comment Banner   ||
||                                      ||
 \\ ================================== //
*/
  1. ${TM_COMMENT_START/\s*$/ /}
  2. // =${1/(.)|(?m:\n.*)/(?1:=)/g}= \\\\
  3. || ${1/(.)|(?m:\n.*)/(?1: )/g} ||
  4. || ${1:${TM_SELECTED_TEXT:Banner}} ||
  5. || ${1/(.)|(?m:\n.*)/(?1: )/g} ||
  6. \\\\ =${1/(.)|(?m:\n.*)/(?1:=)/g}= //
  7. ${TM_COMMENT_END/\s*(.+)/$1/}

Report this snippet  

You need to login to post a comment.