Source to XHTML is een online tool voor webmasters die alle source codes accepteert Op deze manier kan je voorbeelden weergen met openings tags en sluiten tags zowel in php als javascripts etc .

Source Code Input:

Replace multiple white spaces with  

Replace line breaks with <br />

Replace quote (") character with &quot;

Replace greater than (>) character with &gt;

Formatted XHTML output:
<script type="text/javascript">
   if( true && true )
   {
      document.write("<p>It's definitely true</p>");
   }
</script>