Python syntax high-lighting and preservation on web

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gregory Piñero

    Python syntax high-lighting and preservation on web

    Hey guys,

    Does anyone know where I can pick up a style sheet (css) and/or other
    files/programs I might need to display python code on my website with
    tab preservation(or replace with spaces) and colored syntax? I want
    something similar to the python code on a page like this:



    (I think this is a python-list question although maybe it belongs in a
    css group?) I figure some of you guys would have experience with
    this.

    -----

    Giving this issue some more thought, I suppose I could make or find a
    css file anywhere that would work. The hard part would be getting all
    of the div and class tags added to my python code. So I think what I
    really need is a program that will do that, or advice on how to begin
    writing such a program. (It might make a good wordpress plugin too)

    Thanks,
    '
    Greg
  • Daniel Dittmar

    #2
    Re: Python syntax high-lighting and preservation on web

    Gregory Piñero wrote:[color=blue]
    > Hey guys,
    >
    > Does anyone know where I can pick up a style sheet (css) and/or other
    > files/programs I might need to display python code on my website with
    > tab preservation(or replace with spaces) and colored syntax? I want
    > something similar to the python code on a page like this:[/color]

    see http://aspn.activestate.com/ASPN/Coo...n/Recipe/52298

    css only won't help you as someone has to insert the span tags so that
    the style sheet has something to match.

    Daniel

    Comment

    • Gregory Piñero

      #3
      Re: Python syntax high-lighting and preservation on web

      This is perfect! Thanks!


      On 6/29/05, Daniel Dittmar <daniel.dittmar @sap.corp> wrote:[color=blue]
      > Gregory Piñero wrote:[color=green]
      > > Hey guys,
      > >
      > > Does anyone know where I can pick up a style sheet (css) and/or other
      > > files/programs I might need to display python code on my website with
      > > tab preservation(or replace with spaces) and colored syntax? I want
      > > something similar to the python code on a page like this:[/color]
      >
      > see http://aspn.activestate.com/ASPN/Coo...n/Recipe/52298
      >
      > css only won't help you as someone has to insert the span tags so that
      > the style sheet has something to match.
      >
      > Daniel
      > --
      > http://mail.python.org/mailman/listinfo/python-list
      >[/color]

      Comment

      Working...