| 241 | === code highlighting === |
| 242 | 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]] |
| 243 | ,,You have to use additional code highlighting processor such as '''Pygments''',, |
| 244 | |
| 245 | Usage: |
| 246 | |
| 247 | {{{ |
| 248 | {{{ |
| 249 | #!code(lang=css) |
| 250 | div.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 | }}} |
| 261 | Will 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 | ---- |