13 | | Additional configuration options can be added to the `trac.ini` file: |
14 | | {{{ |
15 | | #!ini |
16 | | [code-tags] |
17 | | scan_files = *.html, *.py, *.c, *.h, *.hh, *.m, *.pch, *.hpp |
18 | | scan_folders = trunk/*, branches/* |
19 | | tags = XXX, TODO, FIXME, BUG |
20 | | }}} |
| 12 | See [http://c2.com/cgi/wiki?FixmeComment FixmeComment]. |
22 | | {{{scan_files}}} :: allows you to define specific file types to scan (default: *) |
23 | | {{{scan_folders}}} :: specifies which directories within the repository to scan (default: *) [[br]] |
24 | | {{{exclude_folders}}} :: specifies directories that are subdirectories of {{{scan_folders}}} but don't need to be scanned [[br]] |
25 | | {{{exclude_files}}} :: specifies files that shouldn't be scanned even though they're included by scan_files [[br]] |
26 | | {{{tags}}} :: allows you to specify what tags to locate, though only the defaults are colored at all. (default: XXX, TODO, FIXME) [[br]] |
27 | | |
28 | | By default, this plugin doesn't ignore binary files. If you use svn/trac in a web-dev environment, this is a pain, since the tagger finds tags in files such as `.gif`. |
29 | | |
30 | | This, however, shouldn't be a serious problem because CodeTagsPlugin plugin searches for word boundaries (regex '\b') at the edges of words. |
| 14 | You need a subdirectory named `cache` that's writeable by your Trac to make this work. This takes some time in the first time used. Also don't forget to grant the `CODETAGS_VIEW` permission. |
| 44 | |
| 45 | == Installation / Configuration |
| 46 | |
| 47 | To enable in the `trac.ini` file: |
| 48 | {{{#!ini |
| 49 | [components] |
| 50 | codetags.* = enabled |
| 51 | }}} |
| 52 | |
| 53 | Additional configuration options can be added to the `trac.ini` file: |
| 54 | {{{#!ini |
| 55 | [code-tags] |
| 56 | scan_files = *.html, *.py, *.c, *.h, *.hh, *.m, *.pch, *.hpp |
| 57 | scan_folders = trunk/*, branches/* |
| 58 | tags = XXX, TODO, FIXME, BUG |
| 59 | }}} |
| 60 | |
| 61 | {{{scan_files}}} :: allows you to define specific file types to scan (default: *) |
| 62 | {{{scan_folders}}} :: specifies which directories within the repository to scan (default: *) [[br]] |
| 63 | {{{exclude_folders}}} :: specifies directories that are subdirectories of {{{scan_folders}}} but don't need to be scanned [[br]] |
| 64 | {{{exclude_files}}} :: specifies files that shouldn't be scanned even though they're included by scan_files [[br]] |
| 65 | {{{tags}}} :: allows you to specify what tags to locate, though only the defaults are colored at all. (default: XXX, TODO, FIXME) [[br]] |
| 66 | |
| 67 | By default, this plugin doesn't ignore binary files. If you use svn/trac in a web-dev environment, this is a pain, since the tagger finds tags in files such as `.gif`. |
| 68 | |
| 69 | This, however, shouldn't be a serious problem because CodeTagsPlugin plugin searches for word boundaries (regex '\b') at the edges of words. |