SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: printed php

Hybrid View

  1. #1
    SitePoint Addict sorin21us's Avatar
    Join Date
    Mar 2009
    Posts
    279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    printed php

    I want to put a php script, surrounded by text, on my blog and I want to have the script to be like how is here on this forum, in a box with colors.
    How can I do this?

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    http://www.google.co.uk/search?q=php...x+highlighting

    2nd link is to GeShi which I have seen mentioned many times.

  3. #3
    SitePoint Addict sorin21us's Avatar
    Join Date
    Mar 2009
    Posts
    279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Cups View Post
    http://www.google.co.uk/search?q=php...x+highlighting

    2nd link is to GeShi which I have seen mentioned many times.
    Thank you for the link, but I tried the example from that site and this is what I get. I don't get text with colors.
    I have the correct path for include
    PHP Code:
    include_once 'geshi/geshi.php'
    and I don't know why doesn't work. What do you think?

  4. #4
    @php.net Salathe's Avatar
    Join Date
    Dec 2004
    Location
    Edinburgh
    Posts
    1,398
    Mentioned
    65 Post(s)
    Tagged
    1 Thread(s)
    Please read the GeSHi documentation. Any further questions, I'm sure people would be happy to help you with.
    Salathe
    Software Developer and PHP Manual Author.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •