Welcome to WebmasterWorld Guest from 23.20.137.66

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)

5+ Year Member



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)

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



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)

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



<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)

WebmasterWorld Senior Member piatkow is a WebmasterWorld Top Contributor of All Time 5+ Year Member



@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)

5+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

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



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)

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



Sourceforge has a txt2html Perl program that might be of use: [sourceforge.net...]
3:14 am on Apr 21, 2011 (gmt 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)

5+ Year Member



got it! thanks a lot to you all guys.

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



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

Featured Threads

Hot Threads This Week

Hot Threads This Month