Changes between Version 1 and Version 2 of WikiProcessors


Ignore:
Timestamp:
04/07/06 10:32:35 (13 years ago)
Author:
domlowe
Comment:

Added example while testing how to display python code in Wiki.

Legend:

Unmodified
Added
Removed
Modified
  • WikiProcessors

    v1 v2  
    7575---- 
    7676 
     77'''Example 4''' (''inserting a block of Python source code in wiki text (added by domlowe)''): 
     78 
     79{{{ 
     80#!html 
     81<pre class="wiki">{{{ 
     82#!python 
     83import bananas 
     84print 'Bananas are imported' 
     85try: 
     86  import pineapples 
     87  print 'Pineapples are imported too' 
     88except: 
     89  print 'Fruit overload' 
     90 
     91def main(): 
     92   #etc etc 
     93   pass  
     94}}}</pre> 
     95}}} 
     96 
     97'''Results in:''' 
     98{{{ 
     99#!python 
     100import bananas 
     101print 'Bananas are imported' 
     102try: 
     103  import pineapples 
     104  print 'Pineapples are imported too' 
     105except: 
     106  print 'Fruit overload' 
     107 
     108def main(): 
     109   #etc etc 
     110   pass  
     111}}} 
     112 
     113---- 
     114 
    77115== Available Processors == 
    78116The following processors are included in the Trac distribution: