Skip to content

Instantly share code, notes, and snippets.

@mkober
Created December 12, 2012 04:00
Show Gist options
  • Select an option

  • Save mkober/4264762 to your computer and use it in GitHub Desktop.

Select an option

Save mkober/4264762 to your computer and use it in GitHub Desktop.
Generate PHP ctags
ctags -f .tags \
-h \".php\" -R \
--exclude=\"\.git\" \
--totals=yes \
--tag-relative=yes \
--PHP-kinds=+cf \
--regex-PHP='/abstract class ([^ ]*)/\1/c/' \
--regex-PHP='/interface ([^ ]*)/\1/c/' \
--regex-PHP='/(public |static |abstract |protected |private )+function ([^ (]*)/\2/f/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment