replace multiple spaces with single spaces To be converted into their HTML equivalents, and hyperlinks need to be madeĪ) to accomplish all of the above: Listing A Preserve the original layout on a Web page. This document into HTML is to use HTML line and paragraph break markers to To see pictures of the latest samples, log on to įairly standard text: it has a title (or “slug”),Ī byline, and many paragraphs of text. Track follow-ups to this story online at. What does this mean for you? Well, it means blah blahblah… Rushel Bunter, the head of ASDA’s Mars Colonization Project blah blah… It’s quite likely, therefore, that organisms on Mars will have, through continued exposure to the green stuff, developed a greenish tinge on their outer exoskeleton.Īn interview with Dr. Chlorophyll, you will recall, is what makes plants green. Recent samples sent by the latest Mars exploration team indicate a high presence of chlorophyll in the atmosphere. The idea of little green men from Mars, long a staple of science fiction, may soon turn out to be less fantasy and more fact. To begin, let’s look at an example of one of the raw text To quickly transform plain ASCII text into perfectly readable HTML markup. I’m going to show you how you can use PHP So what did I do in that hour? That’s where this articleĬomes in. It involved a little bit of PHP,Īnd it earned me his eternal thanks and a crate of wine. Hours later, I had a solution waiting for him. And sure enough, when he called back a couple of
Since I was the only geek in his phone book, he’d called me to Past work on the Web however, his columns were all saved as plain-text filesĪnd he had neither the time nor the inclination to learn HTML and convert them
Reprint rights to a number of his earlier columns. He’d been working as a journalist for many years, and had recently received Recently, an old friend of mine rang me up to ask for help. Learn how you can use PHP to quickly transform plain ASCII text into perfectly readable HTML markup. Transform plain text files into Web pages automatically with this PHP script