If rendered html code is correct, then you should put css file in
"static" folder, and link to it from the <head> of your template file.

<link rel="stylesheet" type="text/css" href="/static/style.css" />


On Sep 27, 1:23 am, boubou_cs <[email protected]> wrote:
> well i done it. it is in the same directory than postmarkup.py.
> I don't understand why syntax coloring doesn't run...
>
> On 26 sep, 19:19, andrei <[email protected]> wrote:
>
> > Maybe you need to include css file?
>
> > On Sep 26, 6:42 pm, boubou_cs <[email protected]> wrote:
>
> > > hello,
>
> > > Does someone has already used postmarkup with webpy?
> > > I installed postmarkup and pygments (and code.css related) and I use
> > > this snippet for my tests:
> > >                         ...
> > >                         text = i.article
> > >                         my_postmarkup = 
> > > postmarkup.create(use_pygments=True)
> > >                         with_bbcode = my_postmarkup(text)
> > >                         article.append(with_bbcode)
>
> > >                 return render.index(name, links, article)
>
> > > This works very well with bbcode, although the tag [code python]
> > > syntax coloring does not work.
> > > When I look at the source code all seems correct, div, and span class
> > > are here.
>
> > > Yet when I use pygments command line, the syntax coloring works
> > > perfectly:
>
> > >                 $ pygmentize test.py
>
> > > An idea?
>
> > > Regards,
>
> > > Boubou
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to