Changes between Version 25 and Version 26 of CodeExampleMacro


Ignore:
Timestamp:
Sep 6, 2017, 9:01:11 AM (7 years ago)
Author:
figaro
Comment:

Moved example to description

Legend:

Unmodified
Added
Removed
Modified
  • CodeExampleMacro

    v25 v26  
    55== Description
    66
    7 This macro renders a code example box that supports syntax highlighting. It comes in the following forms: simple, correct, and incorrect. The examples can be used for code review and functional testing, see below for examples.
     7This macro renders a code example box that supports syntax highlighting. It comes in the following forms: simple, correct, and incorrect. The examples can be used for code review and functional testing.
    88
    99Key features:
     
    1212 * Code from the repository can be displayed using TracLinks syntax. The multiple repository configuration (Trac >= 0.12) is supported.
    1313
    14 All rights reserved by [http://codedgers.com Codedgers Inc].
    15 
    16 == Bugs/Feature Requests
    17 
    18 Existing bugs and feature requests for CodeExampleMacro are [report:9?COMPONENT=CodeExampleMacro here].
    19 
    20 If you have any issues, create a [/newticket?component=CodeExampleMacro&cc=rjollos new ticket].
    21 
    22 [[TicketQuery(component=CodeExampleMacro,group=type,format=progress)]]
    23 
    24 == Download
    25 
    26 Download the zipped source from [export:codeexamplemacro here].
    27 
    28 == Source
    29 
    30 You can check out CodeExampleMacro from [/svn/codeexamplemacro here] using Subversion, or [source:codeexamplemacro browse the source] with Trac.
    31 
    32 == Installation
    33 
    34  {{{#!comment
    35  1. '''Check''' dependencies:
    36     i. none required
    37      * `[sudo]` is optional in case you have authorisation to modify your server.
    38 }}}
    39  1. '''Install''' plugin globally, for example with `easy_install`:
    40  {{{#!sh
    41 [sudo] easy_install https://trac-hacks.org/svn/codeexamplemacro
    42 }}}
    43   * `[sudo]` is optional in case you have authorisation to modify your server.
    44   * You might be required to select a specific `tag`, `branch`. Defaults to select from `trunk`.
    45  1. '''Enable''' this component by updating TracIni file as follows:
    46  {{{#!ini
    47 [components]
    48 codeexample.code_example_processor.* = enabled
    49 }}}
    50  {{{#!comment
    51   1. '''Configure''' this component in its own configuration section, by updating TracIni file as follows:
    52      i. none required
    53      {{{#!ini
    54      [plantuml]
    55      plantuml_jar = /path/to/plantuml.jar
    56      java_bin = /path/to/java_bin (optional, if Java binary is not on the search path)
    57      }}}
    58      * example `plantuml_jar = /project-resources/trac/plugins`
    59      * example `java_bin = java` assumes that the Java binary is on the search path.
    60 }}}
    61  1. '''Restart''' web server on command line:
    62  {{{#!sh
    63 [sudo] /etc/init.d/apache2 restart
    64 }}}
    65    * `[sudo]` is optional in case you have authorisation to modify your server.
    66  1. '''Test''' if this component is working properly. If the plugin is installed correctly, the example shown in the [#Usage] section on this page should be displayed.
    67 
    68 == Usage
     14This plugin is to be used as follows:
    6915
    7016  1. Inside a wiki area you can invoke the `#!CodeExample` wiki processor to render a special formatted box containing specified source code, as shown and exemplified down:
     
    13783       [[Image(example4.png)]]
    13884
     85All rights reserved by [http://codedgers.com Codedgers Inc].
     86
     87== Bugs/Feature Requests
     88
     89Existing bugs and feature requests for CodeExampleMacro are [report:9?COMPONENT=CodeExampleMacro here].
     90
     91If you have any issues, create a [/newticket?component=CodeExampleMacro&cc=rjollos new ticket].
     92
     93[[TicketQuery(component=CodeExampleMacro,group=type,format=progress)]]
     94
     95== Download
     96
     97Download the zipped source from [export:codeexamplemacro here].
     98
     99== Source
     100
     101You can check out CodeExampleMacro from [/svn/codeexamplemacro here] using Subversion, or [source:codeexamplemacro browse the source] with Trac.
     102
     103== Installation
     104
     105 {{{#!comment
     106 1. '''Check''' dependencies:
     107    i. none required
     108     * `[sudo]` is optional in case you have authorisation to modify your server.
     109}}}
     110 1. '''Install''' plugin globally, for example with `easy_install`:
     111 {{{#!sh
     112[sudo] easy_install https://trac-hacks.org/svn/codeexamplemacro
     113}}}
     114  * `[sudo]` is optional in case you have authorisation to modify your server.
     115  * You might be required to select a specific `tag`, `branch`. Defaults to select from `trunk`.
     116 1. '''Enable''' this component by updating TracIni file as follows:
     117 {{{#!ini
     118[components]
     119codeexample.code_example_processor.* = enabled
     120}}}
     121 {{{#!comment
     122  1. '''Configure''' this component in its own configuration section, by updating TracIni file as follows:
     123     i. none required
     124     {{{#!ini
     125     [plantuml]
     126     plantuml_jar = /path/to/plantuml.jar
     127     java_bin = /path/to/java_bin (optional, if Java binary is not on the search path)
     128     }}}
     129     * example `plantuml_jar = /project-resources/trac/plugins`
     130     * example `java_bin = java` assumes that the Java binary is on the search path.
     131}}}
     132 1. '''Restart''' web server on command line:
     133 {{{#!sh
     134[sudo] /etc/init.d/apache2 restart
     135}}}
     136   * `[sudo]` is optional in case you have authorisation to modify your server.
     137 1. '''Test''' if this component is working properly. If the plugin is installed correctly, the example shown in the [#Usage] section on this page should be displayed.
     138
    139139== Recent Changes
    140140