cleaning up code

  • Thread starter Thread starter Matthew Baynard
  • Start date Start date
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.
 
Have you tried in Code view right click in the page and in the context
menu click Reformat HTML?
 
Have you tried in Code view right clicking in the page and in the
context menu clicking Reformat HTML?
 
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.
 
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
 
Back
Top