"Fredrik Fornwall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello! > > I am just wondering if there exist some built-in function in PHP to > include text files in HTML while retaining blank spaces and tabs. While > I have found some text to HTML converting scripts I would prefer to let > PHP format the text while including it into a web page, instead of > creating a separate file first. Any suggestions?
echo "<pre>$mytext</pre>"; // ;-) Unless you are going to render to a fixed-width font, your spacing will suffer anyway... or do you only care about left-hand spaces, ie for indenting? -- Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada v3.1 GCS/E/AT d- s+: a- C+++ L++>+++$ P+ E- W+++$ N++ K? w++ M PS+ PE++ Y+ PGP+ t-- 5++ !X R+ tv b++++ DI+++ D-(++) G+ e(++) h-- r- y+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php