| 12 | |
| 13 | == How to install, edit, delete macros == |
| 14 | |
| 15 | '''Installing a macro''' |
| 16 | 1. Download the ''<macro>.py'' file. |
| 17 | 1. Save it to your ''trac.db/wiki-macros'' directory |
| 18 | 1. Restart your web server |
| 19 | 1. Open a Wiki page and add the macro text to test the macro (usually something like {{{[[Macro]]}}} or {{{[[Macro(argument1, argument2)]}}} |
| 20 | |
| 21 | You can '''edit the macro''' by using any text editor and editing the ''trac.db/wiki-macros/<macro>.py'' file. Make the appropriate changes, restart the web server you are using, and the changes should appear. |
| 22 | |
| 23 | '''To delete the macro''', just delete all the macro files in the ''trac.db/wiki-macros'' directory (that have the form ''<macro>.*''). |