[Moin-user] cannot get syntax highlighting to work

R.Bauer rb.proj at gmail.com
Wed Nov 4 16:34:14 EST 2009


Neal Becker schrieb:
> I am using mod_wsgi.  I restarted apache.  Don't know about 'touch 
> deployment script'.  Do I need to do something?
> 

no that's enought instead of restarting the apache process you could
also touch your moin.wsgi.

> R.Bauer wrote:
> 
>> Neal Becker schrieb:
>>> I'm using moin 1.8.5.  I have pygments-1.1.1.
>>>
>>> I tried copying moin-parser.py to mywiki/data/plugin/parser/code.py.

If I look for the highlighting parser I find
http://moinmo.in/ParserMarket/highlight

Where is yours from?

>>> I edited that file to set INLINESTYLES = True.  No other changes.
>> Do you have restarted the server process. Or if you run mod_wsgi do you
>> have touched your deployment script?
>>
>>
>>> I made a test page:
>>>
>>> Describe FrontEndDecimation here.
>>> {{{#!code python
>>> for i in range (10):
>>>   print 'hello'
>>> }}}
>>>
>>> No highlighting.  No error messages I could find.  (How could I debug
>>> this?)
>>>
>>> If I change this to:
>>> {{{#!python
>>> ...
>>>
>>> I get highlighting.  That's nice, but I want highlighting of my
>>> attachments, which I think means I need to use the code.py plugin.

hmm, no a python script should also hightlight on default if you view it
in the attachment dialog or if you use transclusion syntax
e.g. http://moinmo.in/WikiSandBox#old_1.8_code

{{attachment:my_python_script.py}}

does this work for you?

cheers
Reimar





More information about the Moin-user mailing list