Welcome to WebmasterWorld Guest from 23.20.215.116

Forum Moderators: incrediBILL

Message Too Old, No Replies

From Text To HTML

How to convert from text mode to html?

     
3:55 am on Apr 18, 2011 (gmt 0)

New User

5+ Year Member

joined:Feb 7, 2010
posts: 9
votes: 0


would appreciate it if someone can advice me on how to convert from text mode to html. thanks
4:16 am on Apr 18, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Could you share some detail? What needs to be in html mode - some kind of software?
6:50 pm on Apr 18, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


<pre>

This will preformat text
but it's not too pretty.

</pre>

On the most basic level, this will work, otherwise more info is needed as tedster asked.
8:43 am on Apr 19, 2011 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member piatkow is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 5, 2006
posts:3329
votes: 22


@Romer
Are you asking how to use your html editor, in which case we need to know which one you are using, or do you want to display a piece of html on your site?
7:22 am on Apr 20, 2011 (gmt 0)

New User

5+ Year Member

joined:Feb 7, 2010
posts: 9
votes: 0


Hi Guys,

Thanks for your reply. What i want to do is to convert my text word into html format with url inserted. I'm not quiet sure what type of program should i need to operate this conversion. please advise
8:57 am on Apr 20, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 24, 2002
posts:894
votes: 0


You might want to use a WYSIWYG html editor. There are free ones available on the net, just run a search for it.
6:47 pm on Apr 20, 2011 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:13210
votes: 347


Wait. What do you mean "with url inserted"? Are you talking about a complete document, or a list of strings that you want to convert into appropriately formatted links?

The quick-and-dirty way to convert a plain-text document into html is to globally replace all multiple line breaks with </p>\n\n<p> and then do some manual spot-cleaning. (Been there. Done that.) If you are not already reasonably comfortable with Regular Expressions, this is the time to learn.
12:01 am on Apr 21, 2011 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:6964
votes: 385


Sourceforge has a txt2html Perl program that might be of use: [sourceforge.net...]
3:14 am on Apr 21, 2011 (gmt 0)

New User

5+ Year Member

joined:Apr 21, 2011
posts: 8
votes: 0


@Romer
1- Change the Extention of page from txt to html.
2- Add <br /> to the place you want to start new line.
3- Now you may double click to the file and access your html file.
4- If you want to show it online you need domain name and hosting server.( Which need severel things to be learned! )
8:54 am on Apr 23, 2011 (gmt 0)

New User

5+ Year Member

joined:Feb 7, 2010
posts: 9
votes: 0


got it! thanks a lot to you all guys.

Cheers!
12:38 pm on June 2, 2011 (gmt 0)

New User

5+ Year Member

joined:June 2, 2011
posts: 8
votes: 0


I would recommend using a style sheet to handle any break lines or webpage structure.