Euro 2024 sweepstakes!
Prizes to be won this summer! Click here to take part, and find yourself a team to cheer on!
Show your pride!
Rainbows galore in our forum shop, including snazzy colours for your username and even a rainbow-coloured... football?
Join Habbox!
Be part of the Habbox family - there are so many roles to pick from! Click here to get your application rolling


Results 1 to 8 of 8

Thread: PHP code

  1. #1
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default PHP code

    Hey,

    What is the PHP fuction for the PHP colour text like it does on PHP editers and forums.

    EG)

    PHP Code:
    <?php
    print("Like this, see how the parts of the php have there own colour");
    ?>
    I asked Mentor ages ago and he told me, but I have deleted all my PMs so I no longer have it

    Dont bother reply saying stuff like

    <font color="red"> ect.


    I only want the function and nothing else. No tables or anything
    Last edited by Luckyrare; 28-01-2006 at 11:54 AM.

  2. #2
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    I always thought you just put <font color=\"red\">Blah blah</font>

    I didnt think there was a function.. ill look it up

  3. #3
    Coding4Newbs Guest

    Default

    u use html with php, if u dont know jus ask on msn, there is a php way but thts just gay

  4. #4
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Coding4Newbs
    u use html with php, if u dont know jus ask on msn, there is a php way but thts just gay
    j00 copyed my uber 1337 little status bars

  5. #5
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    PHP Code:
    <?php show_source("$file.php"); ?>

  6. #6
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Yes, thats what I am looking for.


    I think Ive found it

    PHP Code:
    highlight_php 
    Thanks spliter also
    Last edited by Luckyrare; 28-01-2006 at 02:23 PM.

  7. #7
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    yes thats probably made for strings etc. good luck

  8. #8
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    edit) I found that code via viewing the source on php.net, they must have just added that function for there server.

    the function is
    PHP Code:
     highlight_string 

    Thanks anyway, thread closed

Posting Permissions

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