php function for syntax higlighting in html ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matthias Pospiech

    php function for syntax higlighting in html ?

    There are many sites that offer code examples with syntax higlighting. Is
    there a way to generate the highlighting with a php function
    automatically ?
    How is such a thing done generally ?

    Matthias


  • R. Rajesh Jeba Anbiah

    #2
    Re: php function for syntax higlighting in html ?

    Matthias Pospiech wrote:[color=blue]
    > There are many sites that offer code examples with syntax[/color]
    higlighting. Is[color=blue]
    > there a way to generate the highlighting with a php function
    > automatically ?
    > How is such a thing done generally ?[/color]

    <http://in.php.net/highlight_file> ?

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

    Comment

    • Matthias Pospiech

      #3
      Re: php function for syntax higlighting in html ?

      R. Rajesh Jeba Anbiah wrote:
      [color=blue]
      > Matthias Pospiech wrote:[color=green]
      >> There are many sites that offer code examples with syntax[/color]
      > higlighting. Is[color=green]
      >> there a way to generate the highlighting with a php function
      >> automatically ?
      >> How is such a thing done generally ?[/color]
      >
      > <http://in.php.net/highlight_file> ?[/color]

      I have the image, that this will only highlight PHP Code, if so, is it
      custamizable so that any Code will be higllighted ?

      Matthias

      Comment

      • Matthias Esken

        #4
        Re: php function for syntax higlighting in html ?

        Matthias Pospiech wrote:
        [color=blue]
        > R. Rajesh Jeba Anbiah wrote:
        >[color=green]
        >> <http://in.php.net/highlight_file> ?[/color]
        >
        > I have the image, that this will only highlight PHP Code, if so, is it
        > custamizable so that any Code will be higllighted ?[/color]

        No.

        Check out http://qbnz.com/highlighter/ for your needs.

        Regards,
        (another) Matthias

        Comment

        Working...