Changes between Version 17 and Version 18 of ShellExampleMacro
- Timestamp:
- Jan 17, 2016, 7:12:56 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ShellExampleMacro
v17 v18 5 5 == Description 6 6 7 Wiki Formatter for command line shell examples.7 This is a wiki processor to display command line shell examples in Trac wiki pages. 8 8 9 This plugin has only been tested on Trac 0.12, but may work with earlier versions.9 This plugin has only been tested on Trac 0.12, and may work for later versions. 10 10 11 11 == Example 12 12 13 Additional examples are available [http://svn.umtri.umich.edu/trac/bio/wiki/useful/ShellExample/readme here]. 13 A typical example might look like this: 14 14 15 {{{ 15 16 {{{ … … 34 35 }}} 35 36 36 Produces output like this: [[BR]]37 Produces output like this: 37 38 38 39 [[Image(ShellExample-example.png)]] 39 40 41 Additional examples are available [http://svn.umtri.umich.edu/trac/bio/wiki/useful/ShellExample/readme here]. 42 40 43 == More Details 41 44 42 This is a [wiki:WikiProcessors WikiProcessor] so it is used with the standard #!notation. This processor injects css code into Trac, so you should get formatted output by default. Any tagged code is inside a span element, and the following classes are used:45 This is a [wiki:WikiProcessors WikiProcessor] so it is used with the standard `#!` notation. This processor injects css code into Trac, so you should get formatted output by default. Any tagged code is inside a span element, and the following classes are used: 43 46 * se-input 44 47 * se-input-userreplacement … … 68 71 69 72 results in something like the following (expanded for easier reading): 70 {{{ 71 #!xml73 74 {{{#!xml 72 75 <div class="code"> 73 76 <pre> … … 104 107 You can check out ShellExampleMacro from [/svn/shellexamplemacro/0.12/trunk/ here] using Subversion, or [source:shellexamplemacro browse the source] with Trac. 105 108 109 There is also a version on [pypi:TracShellExampleMacro PyPi]. 110 111 == Installation 112 113 You can install this software as a normal Trac plugin. 114 115 1. Uninstall ShellExample wiki processor if you have installed before. 116 1. Change to the directory containing `setup.py`. 117 1. If you want to install this plugin globally, that will install this plugin to the Python path: 118 {{{#!python 119 python setup.py install 120 }}} 121 1. If you want to install this plugin to Trac instance only: 122 {{{#!python 123 python setup.py bdist_egg 124 copy the generated egg file to the trac instance's plugin directory 125 cp dist/*.egg /srv/trac/env/plugins 126 }}} 127 1. Configure your `trac.ini` file: 128 {{{#!ini 129 [components] 130 shellexample.* = enabled 131 }}} 132 106 133 == Recent Changes 107 134