Changes between Version 72 and Version 73 of ProcessorBazaar
- Timestamp:
- Jan 14, 2015, 10:40:33 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProcessorBazaar
v72 v73 1 = The Processor Bazaar = 2 3 Looking for fresh wiki processor goodness for your Trac installation? Have you written a clever wiki-processor you're dying to share with the world? This is the place. 4 5 The wiki-processor bazaar is for sharing information about user-developed processors and links to source code and requests. 6 7 '''Note:''' ''Please state your name, email, and version of Trac your wiki-processor is developed for.'' 8 9 == How to use these wiki-processors: == 1 = The Processor Bazaar 2 3 Looking for fresh wiki processor goodness for your Trac installation? Have you written a clever wiki-processor you're dying to share with the world? This is the place. This wiki-processor bazaar is for sharing information about user-developed processors and links to source code and requests. 4 5 '''Note:''' ''Please state your name, email and version of Trac your wiki-processor is developed for.'' 6 7 == How to use these wiki-processors 10 8 11 9 * Just put the files into the {{{wikimacros}}} directory of your … … 20 18 The macros will be available only for this environment. 21 19 22 The wiki-processors should match your trac version, i .e. 0.11 uses {{{class YourCustomMacro(WikiMacroBase)}}} where previous version used {{{def execute(hdf, txt, env)}}}.See wiki:WikiMacros for details.20 The wiki-processors should match your trac version, ie 0.11 uses {{{class YourCustomMacro(WikiMacroBase)}}} where previous version used {{{def execute(hdf, txt, env)}}}. See wiki:WikiMacros for details. 23 21 24 22 ---- 25 23 === !LegendBox === 26 A wiki-processor for encapsulating wiki text inside a box. 27 The box will have a legend and a modifiable color. 28 To use this, simply place it into wikimacro directory and use it. 24 A wiki-processor for encapsulating wiki text inside a box. The box will have a legend and a modifiable color. To use this, simply place it into wikimacro directory and use it. 29 25 30 26 Example: … … 105 101 [[BR]]''By:'' Juanma Barranquero (lekktu at gmail.com) 106 102 [[BR]]''Tested on:'' 0.8 (should work on previous versions, though) 103 107 104 ---- 108 105 === !DocBook ===#docbook … … 129 126 [[BR]]''Version:'' 0.8.x 130 127 [[BR]] 131 [[BR]] If you have problems with an error message like get_config is not supported try this 132 [[BR]] stylesheet = env.config.get('docbook', 'stylesheet') 133 [[BR]] 128 [[BR]] If you have problems with an error message like 'get_config is not supported' try: stylesheet = env.config.get('docbook', 'stylesheet') 129 134 130 ---- 135 131 === !SortedTable === 136 132 A WikiProcessor which sorts tables with JavaScript. 137 133 138 Requires [http://www.kryogenix.org/code/browser/sorttable/sorttable.js sorttable.js] from http://www.kryogenix.org/code/browser/sorttable/.134 Requires [http://www.kryogenix.org/code/browser/sorttable/sorttable.js sorttable.js]. 139 135 140 136 Usage: … … 142 138 1. Fetch [http://www.kryogenix.org/code/browser/sorttable/sorttable.js sorttable.js] (see above) 143 139 1. Put the script somewhere on your HTTP server and set the variable sorttable_js_url in TracIni OR put the JavaScript file in the same directory as the Python file. 144 1. Use WikiProcessor syntax like 140 1. Use WikiProcessor syntax like: 145 141 {{{ 146 142 {{{ … … 158 154 [[BR]]''By:'' Stefan Schwarzer (sschwarzer at sschwarzer dot net) 159 155 [[BR]]''Version:'' >= 0.8 (tested with 0.8) 156 160 157 ---- 161 158 === !IrcLog === … … 172 169 It formats logs in the default format used by Xchat, as well as some others. 173 170 174 The irclog processor is distributable under the terms of the GNU GPL (see: http://www.gnu.org/copyleft/gpl.html).171 The irclog processor is distributable under the terms of the [http://www.gnu.org/copyleft/gpl.html GNU GPL]. 175 172 176 173 Based on [http://mg.pov.lt/irclog2html/ irclog2html.py] by Marius Gedminas. … … 179 176 [[BR]]''By:'' Simon Ward <simon@mivok.net> 180 177 [[BR]]''Version:'' 0.8.x 178 181 179 ---- 182 180 === !BlockQuote === … … 197 195 [[BR]]''Version:'' 0.9b2 (might work with older versions as well) 198 196 [[BR]]''Last change:'' v0.1.1 now correctly handles WikiFormatting in quoted texts 197 199 198 ---- 200 199 === graphviz === … … 218 217 219 218 '''Note:''' A much more powerful Graphviz processor is available [http://trac-hacks.org/wiki/GraphvizPlugin here]. 220 ---- 221 219 220 ---- 222 221 === latex-math === 223 222 A processor that uses LaTeX to make math. Loosely based on graphviz.py and mt-math. … … 237 236 [[BR]]''By:'' Mirko Maischberger mirko dot maischberger at gmail dot com 238 237 239 '''Note:''' This spawn a latex process, you'll need tetex, tetex-extra and dvipng. This is also non suitable for public wikis becuase spawning an external latex process is not secure (unless properly configured).238 '''Note:''' This spawns a latex process, so you'll need tetex, tetex-extra and dvipng. This is not suitable for public wikis, because spawning an external latex process is not secure when not properly configured. 240 239 241 240 ---- 242 241 243 242 === !ShellExample === 244 A processor that produces [http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=5 gentoo like document code listing],.243 A processor that produces [http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=5 Gentoo-like document code listing]. 245 244 246 245 Usage: … … 260 259 [[BR]]''By:'' Nathaniel Madura (nmadura at umich dot edu) 261 260 [[BR]]''Current Version:'' 0.12.1 261 262 262 ---- 263 263 === code highlighting === 264 A simple processor (deployed as plugin) that uses predefined processor to make highlighted output of arbitrary source code. This language of the source code is pass as file extension (like `css` for CSS) instead of mimetype.[[BR]] 265 ,,You have to use additional code highlighting processor such as '''Pygments''',, 264 A simple processor (deployed as plugin) that uses predefined processor to make highlighted output of arbitrary source code. This language of the source code is pass as file extension (like `css` for CSS) instead of mimetype. 265 266 ,,You have to use an additional code highlighting processor such as '''Pygments''',, 266 267 267 268 Usage: … … 282 283 }}} 283 284 284 Will produce:285 This will produce: 285 286 286 287 [[Image(code-processor.png)]] … … 289 290 [[BR]]''By:'' Sebastian Krysmanski 290 291 [[BR]]''Version:'' Runs on Trac 0.11.x 291 ---- 292 === pascal === 293 A simple processor that uses predefined processor to make highlighted output of the pascal source code.[[BR]] 292 293 ---- 294 === Pascal === 295 A simple processor that uses predefined processor to make highlighted output of the Pascal source code.[[BR]] 294 296 ,,You have to use additional code highlighting processor such as '''enscript''',, 295 297 … … 306 308 }}} 307 309 }}} 308 Will produce: 310 311 This will produce: 309 312 {{{ 310 313 #!html … … 326 329 327 330 * Request: A WikiProcessor for SVG [http://www.svg-whiz.com/wiki/index.php?title=SVG_FAQ] 328 * ~~Request: A WikiProcessor for unified diffs~~ ''(well, it's already there since 0.9, no? use `#!diff` in your block)''329 * ~~Request: A WikiProcessor for javascript syntax highlighting~~330 331 * Request: A WikiProcessor for mediawiki format (see [http://trac-hacks.org/wiki/MediaWikiPluginMacro]) 331 332 * Request: A WikiProcessor for [http://www.twiki.org twiki] format - so we can move existing docs to Trac 332 * ~~Request: A WikiProcessor for VERILOG HDL syntax highlighting~~ Supported by [http://pygments.org/languages/ Pygments]333 333 * Request: A WikiProcessor for [http://daringfireball.net/projects/markdown/ markdown] 334 334 * Request: A WikiProcessor for Perl's POD 335 335 * Request: A WikiProcessor for Java Stacktraces (with links into subversion repository, if possible ;) ) 336 * Request: A WikiProcessor for [http://orgmode.org/ org-mode syntax] 337 * ~~Request: A WikiProcessor for VERILOG HDL syntax highlighting~~ Supported by [http://pygments.org/languages/ Pygments] 336 338 * ~~Request: A WikiProcessor for Apache2 config~~ Supported by [http://pygments.org/languages/ Pygments] 337 339 * ~~Request: A WikiProcessor for Haskell syntax highlighting~~ Supported by [http://pygments.org/languages/ Pygments] 338 * Request: A WikiProcessor for [http://orgmode.org/ org-mode syntax] 340 * ~~Request: A WikiProcessor for unified diffs~~ ''(it's already there since 0.9: use `#!diff` in your block)'' 341 * ~~Request: A WikiProcessor for javascript syntax highlighting~~ 339 342 * ~~Request: A WikiProcessor for GLSL (OpenGL Shading Language, should be a lot like C, just with different types and keywords)~~ Supported by [http://pygments.org/languages/ Pygments] 340 343 341 344 ---- 342 See also: WikiProcessors , MacroBazaar345 See also: WikiProcessors