954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

view php code on my website

Hi, please point me in right direction.
I want to be able to post php/html/mysql code on my website and have it viewed as i would if i posted code on daniweb and used the CODE tags

for e.g

<?php
echo "I would like to see my code like this";
?>
designalex
Light Poster
31 posts since Jan 2011
Reputation Points: 10
Solved Threads: 1
 

Use htmlentities() to make it safe and visible.

There are a number of code displayers. Usually a mixture of CSS and JS. I've used syntaxhighlighter in the past, amongst others. Plenty to chose from.

diafol
Rhod Gilbert Fan (ardav)
Moderator
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: