Link to home
Start Free TrialLog in
Avatar of Mike Eghtebas
Mike EghtebasFlag for United States of America

asked on

NotePad format to html

There is a txt file containing some code. It includes some line-breaks and tabs to space out the content.
-- PL/SQL, CDS Project, 2012
-- See additional notes at the end.

-- create tPeople.
-- users are expeced to enter only tPeople.nuid, the rest of the information will be refreshed 
-- nightly or on demand using the existing tables in the Oracle database.  
CREATE TABLE tPeople (
	peopleID		number(6)		not null,
	admin			char(1)			not null default 'N', 
	submitter		char(1)			not null default 'N', 
	operator		char(1)			not null default 'N', 
	builder			char(1)			not null default 'N', 

Open in new window


To format it in a html file, the worst to the best options are:

1. Use <br /> tag and &nbsp; in the html file.
2. Use table tags.

Question: What are some other easier options?

Can <pre> tag be used here? If so how it could be included?

Thank you.
Avatar of jsdray
jsdray
Flag of United States of America image

You could always cut and paste to a MS Word doc and save as html...
Avatar of Mike Eghtebas

ASKER

Hi jsdray,

You never cut and paste from word to html. This is because there are lots of hidden format word-specific format tags the could mess up html if copied and pasted from word to html.

If you have in word, always cut and paste to txt file first. In this situation, we already have it in txt file.

<pre> does the job btw. Whomever comments on it will get the points.

Thanks,

Mike
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial