TextMate HTML5 comment style banner


/ Published in: Other
Save to your folder(s)

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

/*
// ================================== \\
|| ||
|| HTML5 Boilerplate Comment Banner ||
|| ||
\\ ================================== //
*/


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.