Commit | Line | Data |
---|---|---|
1745eab0 | 1 | Generating a tags file |
2 | ====================== | |
3 | ||
e5e50970 | 4 | If you need a tags file so that you can jump around Moodle code |
1745eab0 | 5 | easily in your editor (eg vim or emacs), you can generate one: |
6 | ||
7 | Exuberant ctags (default on Linux, can be compiled on other platforms): | |
8 | ---------------------------------------------------------------------- | |
9 | ||
38535ab8 SC |
10 | ctags -R --languages=php --php-kinds=f \ |
11 | --regex-PHP='/abstract +class +([^ ]*)/\1/c/' \ | |
12 | --regex-PHP='/interface +([^ ]*)/\1/c/' \ | |
13 | --regex-PHP='/(public |static |abstract |protected |private )+ *function +([^ (]*)/\2/f/' | |
1745eab0 | 14 | |
15 | BSD ctags (Default on Mac OS X): | |
16 | ------------------------------- | |
17 | ||
18 | (TODO) |