Results 1 to 3 of 3

Thread: PHP code box...

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

    Latest Awards:

    Default PHP code box...

    I am editing cutenews to add [php] tags!

    How can I do it coloured co-ordinated...

    Like vb, and other forums use...

    eg...

    PHP Code:
    <?
    echo "Like this?";
    ?>
    How can I do this on a normal non-cutenews page?
    And (If you no) how can I do this on cutenews page?

    Thanks

    If you don't understand feel free to say...

  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    I looked for thise once, its actaly pretty easy with php, as you dont have to lol, php acatly conatinsa function to do it for you

    highlight_string(' CODE TO HIGHLIGH HERE ');

    or more useful

    highlight_string($variable_containg_code);

    hope that helps

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

    Latest Awards:

    Default

    Yes, that should help.

    Thanks mentor

Posting Permissions

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