Re: TAB Syntax
| From: | Lars Torben Wilson | Date: | Wed, 30 Jun 2004 09:03:40 +0000 |
| Subject: | Re: TAB Syntax | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189277@lists.php.net to get a copy of this message | ||
Harlequin wrote:
Cheers Lars. So, for example, if I wanted to display some plain text tabbed I'd use: echo "<pre>string1\tstring2\tstring3</pre>"; There's just one problem though - it formats the text differently to the rest of the page (I'm using CSS to control this). Any thoughts...?Try adding 'white-space: pre;' to the CSS for that bit: <div style="white-space: pre;">
<?php echo "This\tis\n\ta test."; ?></div> See if adding that helps. Cheers, Torben