cleaning up code

M

Matthew Baynard

Does anyone know of a utility for Frontpage that would help clean up the
code. Like arranging the indents and such. I'm trying to make my
sloppy code look a bit better.
 
M

Malcolm Walker

Have you tried in Code view right click in the page and in the context
menu click Reformat HTML?
 
M

Malcolm Walker

Have you tried in Code view right clicking in the page and in the
context menu clicking Reformat HTML?
 
A

Andrew Murray

Malcolm said:
Have you tried in Code view right click in the page and in the context
menu click Reformat HTML?
Go to the Code View, then use the options "reformat Html" and/or
"optimise HTML".

Optimise HTML brings up a dialogue and gives you the options to delete
extraneouse code like HTML comments (either all comments, of various
types of comments), whitespace, unused content, empty tags, VML content,
Unused styles and so on; it could be quite comprehensive and would
clean up your code quite a bit.

Reformat HTML would do the indenting and code formatting;

Optimise HTML assists in getting rid of the unwanted HTML code/tags.
 
R

Ronx

Optimise HTML, unless used carefully, can effectively KILL a FrontPage
website. For example, removing *all* HTML comments may also remove all
FrontPage navigation bars, form validation, and Layout table descriptors
- these use HTML comments for configuration.

The only safe optimisation (that won't damage the page or website) is
removal of leading whitespace - but this will also remove indents from
the code.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top