PDA

View Full Version : Import HTML into dynamic text box


nsmdesigns
07-25-2005, 07:44 PM
Hi all

I am wondering. I can find enough tutorials showing me how to reference an external text file into a text box, use an external CSS file to style it, and use HTML tags to format it.

Problem is, I always see the text file as a continuous line of text, complete with HTML tags and such. Is it possible to use a more-editable friendly file with line breaks and stuff.

i.e. I'd rather use a file like this:

<p>A paragraph of text with a list:
<ul><li>one</li>
<li>two</li>
<li>three</li></ul>
</p>

Rather than this:

<p>A paragraph of text with a list:<ul><li>one</li><li>two</li><li>three</li></ul></p>

Is it possible?

Ricod
07-26-2005, 03:06 AM
You can just do it the way you want as far as I know. You don;t have to write it all as one line. I don't. I just use notepad btw.

Why do you need to do so ?

nsmdesigns
08-06-2005, 05:08 PM
Thanks for the reply, ricod.

I'd like to just so it's easier to edit. If it's a list of items, for example, to see each one on its own line makes editing easier. Ditto to see each paragraph as a block.

Thanks - I still have to try this out. I'll post back here with the results.