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";
?>
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";
?>
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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.