Changes between Version 13 and Version 14 of ShellExampleMacro


Ignore:
Timestamp:
Jan 25, 2011, 8:52:27 PM (13 years ago)
Author:
Nathaniel Madura
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ShellExampleMacro

    v13 v14  
    44
    55== Description ==
    6 
    76Wiki Formatter for command line shell examples.
    87
    98This plugin has only been tested on Trac 0.12, but may work with earlier versions.
    10 
    11 == Bugs/Feature Requests ==
    12 
    13 Existing bugs and feature requests for ShellExampleMacro are
    14 [report:9?COMPONENT=ShellExampleMacro here].
    15 
    16 If you have any issues, create a
    17 [http://trac-hacks.org/newticket?component=ShellExampleMacro&owner=nmadura new ticket].
    18 
    19 == Download ==
    20 
    21 Download the current source (0.12.1) from [http://trac-hacks.org/svn/shellexamplemacro/0.12/tags/shellexample-0.12.1.tar.gz here].
    22 
    23 == Source ==
    24 
    25 You can check out ShellExampleMacro from [http://trac-hacks.org/svn/shellexamplemacro/0.12/trunk/ here] using Subversion, or [source:shellexamplemacro browse the source] with Trac.
    269
    2710== Example ==
     
    5336[[Image(ShellExample-example.png)]]
    5437
     38== More Details ==
     39This 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:
     40 * se-input
     41 * se-input-userreplacement
     42 * se-input-string
     43 * se-input-continuation
     44 * se-input-option
     45 * se-input-delayed
     46 * se-prompt
     47 * se-prompt-start
     48 * se-prompt-user
     49 * se-prompt-userhostseparator
     50 * se-prompt-host
     51 * se-prompt-path
     52 * se-prompt-end
     53 * se-root
     54 * se-unprivileged
     55 * se-note
     56 * se-output
     57 * se-output-snipped
     58
     59{{{
     60{{{
     61#!ShellExample
     62{user@foo ~/path/to}$ foo --user {username}
     63}}}
     64}}}
     65
     66results in something like the following (expanded for easier reading):
     67{{{
     68#!xml
     69<div class="code">
     70  <pre>
     71    <span class="se-prompt">
     72        <span class="se-prompt-start">{</span>
     73        <span class="se-prompt-user">user</span>
     74        <span class="se-prompt-userhostseparator">@</span>
     75        <span class="se-prompt-host">foo</span>
     76        <span class="se-prompt-path">~/path/to</span>
     77        <span class="se-prompt-end">}</span>
     78    </span>
     79    <span class="se-unprivileged">$ </span>
     80    <span class="se-input">foo <span class="se-input-option">--user</span> <span class="se-input-userreplacement">{username}</span></span>
     81  </pre>
     82</div>
     83}}}
     84
     85== Bugs/Feature Requests ==
     86
     87Existing bugs and feature requests for ShellExampleMacro are
     88[report:9?COMPONENT=ShellExampleMacro here].
     89
     90If you have any issues, create a
     91[http://trac-hacks.org/newticket?component=ShellExampleMacro&owner=nmadura new ticket].
     92
     93== Download ==
     94
     95Download the current source (0.12.1) from [http://trac-hacks.org/svn/shellexamplemacro/0.12/tags/shellexample-0.12.1.tar.gz here].
     96
     97== Source ==
     98
     99You can check out ShellExampleMacro from [http://trac-hacks.org/svn/shellexamplemacro/0.12/trunk/ here] using Subversion, or [source:shellexamplemacro browse the source] with Trac.
     100
    55101== Recent Changes ==
    56102