cleaning up code
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.
--
Regards,
Matthew
Re: cleaning up code
Have you tried in Code view right click in the page and in the context
menu click Reformat HTML?
Matthew Baynard wrote:
> 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.
>
Re: cleaning up code
Have you tried in Code view right clicking in the page and in the
context menu clicking Reformat HTML?
Matthew Baynard wrote:
> 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.
>
Re: cleaning up code
Malcolm Walker wrote:
> Have you tried in Code view right click in the page and in the context
> menu click Reformat HTML?
>
> Matthew Baynard wrote:
>> 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.
>>
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.
Re: cleaning up code
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
"Andrew Murray" <admuray [at] NOSPAMiinet.net.au> wrote in message
news:#A1PfNmXIHA.536 [at] TK2MSFTNGP06.phx.gbl:
> Malcolm Walker wrote:
> > Have you tried in Code view right click in the page and in the context
> > menu click Reformat HTML?
> >
> > Matthew Baynard wrote:
> >> 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.
> >>
> 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.