Skip to content

Instantly share code, notes, and snippets.

@donson
Forked from hotoo/html.ctags
Created July 15, 2010 03:01
Show Gist options
  • Select an option

  • Save donson/476439 to your computer and use it in GitHub Desktop.

Select an option

Save donson/476439 to your computer and use it in GitHub Desktop.
--langdef=html
--langmap=html:.htm.html
--regex-html=/<h1[^>]*>(.*)<\/h1>/\1/h,header/
--regex-html=/<h2[^>]*>(.*)<\/h2>/. \1/h,header/
--regex-html=/<h3[^>]*>(.*)<\/h3>/. \1/h,header/
--regex-html=/<h4[^>]*>(.*)<\/h4>/. \1/h,header/
--regex-html=/<h5[^>]*>(.*)<\/h5>/. \1/h,header/
--regex-html=/<h6[^>]*>(.*)<\/h6>/. \1/h,header/
--regex-html=/<([a-zA-Z][a-zA-Z0-9]*)[^>]*[ \t]+id='([^']+)'/\1#\2/o,object/
--regex-html=/<([a-zA-Z][a-zA-Z0-9]*)[^>]*[ \t]+id="([^"]+)"/\1#\2/o,object/
--regex-html=/<([a-zA-Z][a-zA-Z0-9]*)[^>]*[ \t]+class='([^']+)'/\1.\2/c,class/
--regex-html=/<([a-zA-Z][a-zA-Z0-9]*)[^>]*[ \t]+class="([^"]+)"/\1.\2/c,class/
let tlist_html_settings = 'html;h:Headers;o:Objects(ID);c:Classes'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment