You are here: Re: duplicating <pre> with other tags « HTML « IT news, forums, messages
Re: duplicating <pre> with other tags

Posted by Jukka K. Korpela on 10/17/38 11:54

John O'Conner <jsoconner2@NOSPAMearthlink.net> scripsit:

> I've been told that I can no longer use pre-tags for code sample text.
> It's a bummer, but I can't change the decision.

Then ask the one who made the decision what you should use instead.

> My question is this: how can I duplicate the pre-tag functionality
> with other tags...

You can create a poor man's surrogate for <pre> using messy and nonstandard
markup:

<div><tt><nobr>first line<br>second line<br>...<br>last
line</nobr></tt></div>

with each occurrence of the space character replaced by &nbsp;. Awkward, is
it not? (The <nobr> markup is needed to prevent line breaks after hyphens
and possibly some other special characters.)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация