It is currently Sat Feb 04, 2012 3:55 pm

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Wrapping codes
PostPosted: Sat May 03, 2008 1:42 pm 
Offline

Joined: Tue Mar 18, 2008 7:52 am
Posts: 2
Hi

I have a KB page where I paste samples codes.
In this forum the tags "code" are used to wrap around code and upon submission the code is neatly wrapped.
Can I have the code used behind the "code" tag that will make my sample code in a page look like this.

Code:
if ($cookiestatus <> 'loggedin')
  {
      $url = 'error.php';
      header("Location: $url");
  }
$name = $_COOKIE['name'];



I believe this is done using CSS.
Please help.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 11, 2008 4:50 am 
Offline

Joined: Sun May 02, 2004 11:34 pm
Posts: 6498
Location: toronto, canada
1. its a forum, you download and see how its done...do your own work

2. http://ca3.php.net/manual/en/function.show-source.php

_________________
Lostboy

Cat, the other other white meat

Please read Posting Etiquette before posting

You can always try Google


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron