Jump to content

problem with displaying code


flunn

Recommended Posts

I want to display a hundred or so lines of html/php code on a web page. I've found a code munger that does an excellent job of converting html code into ascii codes. The problem is that when I put the results between <p> tags there are no line breaks, so it's quite unreadable. When I put the ascii codes into a "TEXT AREA" box there are line breaks but not in the right places.

 

Any suggestions as to how I might solve this problem would be much appreciated.

 

I just want the displayed code to look like it looks in my html editor (Taco).

 

best regards to all from flunn

Link to comment
Share on other sites

Thanks, ACE, for your reply.

I used the function you suggested and it certainly does come closer to getting the lines right. However there are problems:

-The doctype does not appear.

-None of the html tags appear.

-The radio buttons I used in forms appear as actual radio buttons instead of appearing as '<input type = "radio" ...'.

-Instead of being at the end of the lines of php code as they're supposed to be, the quotation marks and the semi-colons come at the beginning of the following line.

If you have any other suggestions as to how I can display code that is set up in the way it's set up in my html editor, I'd be very grateful.

regards to all from

flunn

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.