I saw the update to the docs site today..
http://docs.pythonweb.org/display/pylonscookbook/Documentation+Guidelines
Even though this was a Confluence reference, I thought pygments would
be great to add to a pylons based site.
An example of what I was thinking about would be including a code
block in the middle of an otherwise tagged html page.
<h1>Ways to do something</h1>
<h2>Using the command line</h2>
<code style="shell">
.. some shell commands ..
</code>
<h2>Using the python</h2>
<code style="python">
.. some python code ..
</code>
The output would be rendered with the correct pygment tags. I would
just have to include an additional style sheet to pick them up.
I installed pygments and have played around with the CLI tool, and it
looks very useful. I am just not sure the best way to implement it
within pylons. I assume, since it is part of the View layer, it will
go into the templates. I use mako and checked their site and found
"Pygments-compatible syntax highlighting module is included" but was
not sure exactly how to work it in.
Sorry if this is an obvious question or posted to the wrong place. I
spent some time googling and found lots of mentions, but not much
else. Does anyone have any advice on where I could learn more, or
maybe even an example?
--
michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---