ProcessorBazaar: pascal-0.0.1.py
| File pascal-0.0.1.py, 391 bytes (added by shadow, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | """ |
| 2 | Processor that calls Pascal Mimeview processor |
| 3 | |
| 4 | Version: 0.0.1 (2006-09-10) |
| 5 | |
| 6 | Example: |
| 7 | {{{ |
| 8 | #!pascal |
| 9 | procedure Example(const A, B : byte); |
| 10 | begin |
| 11 | if (A=B) then for i:=0 to 25 do begin |
| 12 | WriteLn('Example'); |
| 13 | end; |
| 14 | end; |
| 15 | }}} |
| 16 | |
| 17 | SHadoW |
| 18 | shadow(at)mapik(dot)net |
| 19 | """ |
| 20 | |
| 21 | from trac.mimeview import Mimeview |
| 22 | |
| 23 | def execute(hdf, text, env): |
| 24 | return Mimeview(env).render(None, 'text/x-pascal', text) |
| 25 |
