how to put html, php and perl code samples on HTML page

Status
Not open for further replies.

oracle

New Member
Messages
430
Reaction score
0
Points
0
Hello All,

I was making kindda tutorial and I need to put some html, php and perl code samples up on the pages. However as soon as i put some code samples, the code sample is itself executed. I want to stop the execution of these code samples, so that users can see the code.

Any help please.

Imoracle
 

bugfinder

Retired
Messages
2,260
Reaction score
0
Points
0
Then you need to use the & character extenders in html eg

Code:
<?php print("this is a test\n"); ?>
 
Last edited:
Status
Not open for further replies.
Top