Simple syntax hightlight class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alvaro G. Vicario

    Simple syntax hightlight class

    Before writing it myself (str_replace, preg_replace and a keyword list
    updated as I find them?) I'd like to know whether there's already a simple
    syntax highlighting class or script I can use to convert my code snippets
    (PHP, JavaScript, HTML, CSS...) into cute coloured HTML.

    Quick research lead to me incredibly complicated inventions that use XML
    parsers or even require to compile and install libraries. I don't really
    need that much.


    --
    -+ Álvaro G. Vicario - Burgos, Spain
    +- http://www.demogracia.com (la web de humor barnizada para la intemperie)
    ++ No envíes tu dudas a mi correo, publícalas en el grupo
    -+ Do not send me your questions, post them to the group
    --
  • Daniel Tryba

    #2
    Re: Simple syntax hightlight class

    Alvaro G. Vicario <kAlvaroNOSPAMT HANKS@terra.es> wrote:[color=blue]
    > Before writing it myself (str_replace, preg_replace and a keyword list
    > updated as I find them?) I'd like to know whether there's already a simple
    > syntax highlighting class or script I can use to convert my code snippets
    > (PHP, JavaScript, HTML, CSS...) into cute coloured HTML.[/color]

    What is wrong with highlight_strin g or highlight_file ?

    Comment

    • Alvaro G. Vicario

      #3
      Re: Simple syntax hightlight class

      *** Daniel Tryba escribió/wrote (19 Mar 2005 23:06:56 GMT):[color=blue]
      > What is wrong with highlight_strin g or highlight_file ?[/color]

      If I had to write myself *all* the software I use... :)


      --
      -+ Álvaro G. Vicario - Burgos, Spain
      +- http://www.demogracia.com (la web de humor barnizada para la intemperie)
      ++ No envíes tu dudas a mi correo, publícalas en el grupo
      -+ Do not send me your questions, post them to the group
      --

      Comment

      • TekWiz

        #4
        Re: Simple syntax hightlight class

        Alvaro G. Vicario wrote:[color=blue]
        > Before writing it myself (str_replace, preg_replace and a keyword list
        > updated as I find them?) I'd like to know whether there's already a simple
        > syntax highlighting class or script I can use to convert my code snippets
        > (PHP, JavaScript, HTML, CSS...) into cute coloured HTML.
        >
        > Quick research lead to me incredibly complicated inventions that use XML
        > parsers or even require to compile and install libraries. I don't really
        > need that much.
        >
        >[/color]

        do a search for "pretty printers"

        --TekWiz

        Comment

        • Alvaro G. Vicario

          #5
          Re: Simple syntax hightlight class

          *** TekWiz escribió/wrote (Sat, 19 Mar 2005 18:17:05 -0600):[color=blue]
          > do a search for "pretty printers"[/color]

          Super! Ah, the importance of choosing the right keywords :)


          --
          -+ Álvaro G. Vicario - Burgos, Spain
          +- http://www.demogracia.com (la web de humor barnizada para la intemperie)
          ++ No envíes tu dudas a mi correo, publícalas en el grupo
          -+ Do not send me your questions, post them to the group
          --

          Comment

          • R. Rajesh Jeba Anbiah

            #6
            Re: Simple syntax hightlight class

            Alvaro G. Vicario wrote:[color=blue]
            > Before writing it myself (str_replace, preg_replace and a keyword[/color]
            list[color=blue]
            > updated as I find them?) I'd like to know whether there's already a[/color]
            simple[color=blue]
            > syntax highlighting class or script I can use to convert my code[/color]
            snippets[color=blue]
            > (PHP, JavaScript, HTML, CSS...) into cute coloured HTML.[/color]
            <snip>

            http://qbnz.com/highlighter/ ?

            --
            <?php echo 'Just another PHP saint'; ?>
            Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

            Comment

            • Alvaro G. Vicario

              #7
              Re: Simple syntax hightlight class

              *** R. Rajesh Jeba Anbiah escribió/wrote (20 Mar 2005 09:04:09 -0800):[color=blue]
              > http://qbnz.com/highlighter/ ?[/color]

              Thanks a lot. This is exactly what I was looking for. It even formats code
              into HTML the very same way I had in mind, including
              tabs-to-custom-number-of-spaces and line wrap.


              --
              -+ Álvaro G. Vicario - Burgos, Spain
              +- http://www.demogracia.com (la web de humor barnizada para la intemperie)
              ++ No envíes tu dudas a mi correo, publícalas en el grupo
              -+ Do not send me your questions, post them to the group
              --

              Comment

              Working...