> I am not quite sure what you are having problems with, but I think you
> want to 'remind' trac you have python code for syntax highlighting:
> {{{
> #!python
> 
>   (your script here)
> }}}
> 
>  - Aaron

Hi Aaron

I Know that there is the possibility to separate the different code-sections 
like you mentioned. But this would be a little nasty for a example like this:

{{{
#!rst

Some Text

}}}
{{{
#!python

Some python code
}}}
and then again rst-text, python-code, rst-text, python-code and so on.
So we tried to use the "inline-code-blocks" like this:
{{{
#!rst

Some Text

.. code-block:: python
  python code

Some Text

.. code-block:: python
  python code

Some Text

.. code-block:: python
  python code

}}}

And with trying this we discovered that on some wiki-pages only the first 
occurrence of a ".. code-block:: python" gets a correct highlighted 
Python-code-block. All further occurences of a ".. code-blaock:: python" don't 
show a highlighted Python-Code-Block, they show just a text-line with "none".

Please also see again the 2 links:
This one works a expected: <http://gelb.bcom.at/trac/misc/wiki/asdf>
This one doesn't: 
<http://gelb.bcom.at/trac/misc/wiki/TutorialsPython/PythonUmlauteUnicodeEncodings>

So can anyone tell me why the "inline codeblock" sometimes doesn't work?

BTW: With the temp user "traclist" and the password "traclist" you can view the 
source of these wikis. The user will be deleted within the next few days!

Many thanks in advance

Errath Viktor

_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to