Edgewall Software

Changes between Version 60 and Version 61 of ProcessorBazaar


Ignore:
Timestamp:
Jul 26, 2009, 12:26:49 PM (15 years ago)
Author:
Sebastian Krysmanski <sebastian@…>
Comment:

Added code processor

Legend:

Unmodified
Added
Removed
Modified
  • ProcessorBazaar

    v60 v61  
    239239[[BR]]''Version:'' 4
    240240----
     241=== code highlighting ===
     242A 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]]
     243,,You have to use additional code highlighting processor such as '''Pygments''',,
     244
     245Usage:
     246
     247{{{
     248{{{
     249#!code(lang=css)
     250div.lang-name-template {
     251  margin: -1em 1.75em 1em 1.75em;
     252  background: #F7F7F7;
     253  text-align: right;
     254  padding-right: 0.5em;
     255  border-style: solid;
     256  border-color: #D7D7D7;
     257  border-width: 0 1px 1px 1px;
     258}
     259}}}
     260}}}
     261Will produce:
     262[[Image(code-processor.png)]]
     263''Download:'' [https://svn.mayastudios.de/mtpp/wiki/Plugins/CodeProcessor]
     264[[BR]]''By:'' Sebastian Krysmanski
     265[[BR]]''Version:'' Runs on Trac 0.11.x
     266----
    241267=== pascal ===
    242268A simple processor that uses predefined processor to make highlighted output of the pascal source code.[[BR]]