Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Displaying HTML code on pages
#6
Angryboy Wrote:I want to be able to display code such as:

Code:
<?php
/* Credit to ccagle8 for the original function; edited by Angryboy */
function get_author_username($blogusername) { ... }
?>

In this form for tutorials about GetSimple. But even when I encode the < and > entities, they are still executed, making the code unable to be viewed and breaking the web page. This even goes for showing other bracketed codes:

Code:
(% stuff in here %)

I've had to insert spaces between the < and > signs, but I've seen other sites display their code just fine. Is there something I'm doing wrong, or could this be a server problem?

Thanks to whoever provides a solution!

Have you tried pasting your code straight into the WYSIWYG editor?
Works for me!
http://eatons.net/tutorials/innnovationoutline/
Reply


Messages In This Thread
Displaying HTML code on pages - by Angryboy - 2012-04-03, 18:52:54
Displaying HTML code on pages - by mvlcek - 2012-04-03, 19:09:59
Displaying HTML code on pages - by marrco - 2012-04-03, 19:42:18
Displaying HTML code on pages - by Angryboy - 2012-04-03, 20:11:25
Displaying HTML code on pages - by mvlcek - 2012-04-03, 20:48:56
Displaying HTML code on pages - by eatons - 2012-04-04, 06:39:35
Displaying HTML code on pages - by Angryboy - 2012-04-04, 17:08:44
Displaying HTML code on pages - by eatons - 2012-04-04, 20:32:05
Displaying HTML code on pages - by Angryboy - 2012-04-04, 21:07:46



Users browsing this thread: 1 Guest(s)