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";
?>
Member Avatar for diafol

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.