Can anyone recommend an HTML 'beautifier'? 

I am looking for a utility which will turn all of my lower case HTML (written in, say, notepad) into upper case and perhaps indent it too. Does anyone know if such a program exists?

Can anyone recommend an HTML 'beautifier'? 

You can user Dave Raggett's "tidy" to force all tags into upper case, or lower case. Actually, this tool can do so much more to beautify your code, for me it's a must-have.

It's a command-line tool (great for mass manipulation), but it has also been integrated in a number of GUI programs. See http://www.w3.org/People/Raggett/tidy/ for more info.

Matthias

Can anyone recommend an HTML 'beautifier'? 

> I would just like to thank Matthias and all the others who have pointed me
> in the direction of 'Tidy'.  From what I have read, it is does exactly the
> sort of thing I am looking for.  My problem now is figuring out how it
> works!  Excuse me for being thick, but the blurb on www.w3.org about the
> program is virtually incomprehensible for a novice!  All that stuff about
> stderr and stdout doesn't mean a thing to me.

Download tidy, and save it in one of the directories which are on your default path.

Open an MS-DOS window.

In it, connect to the directory where your HTML files are by typing

cd <path to directory>

Now, for each file you want to work on, type

tidy -i -u -m <filename>

Where -i means 'indent'; -u means 'upper-case tags', and -m means 'modify in place'.

Simon Brooke

Can anyone recommend an HTML 'beautifier'? 

> works!  Excuse me for being thick, but the blurb on www.w3.org about the
> program is virtually incomprehensible for a novice!  All that stuff about
> stderr and stdout doesn't mean a thing to me.

If you really want to do more of this web stuff, you might as well get used to the technobabble right now. There is more to come :-).

However… HTML-Kit ( http://www.chami.com/html-kit/ ) has a nice graphic frontend for tidy, including the lowercase/uppercase thing. Programs for other platforms are mentioned at the "tidy"- homepage.

Matthias

Can anyone recommend an HTML 'beautifier'? 

http://groups.google.com/groups?selm=8EF099725maddogonlineno%40127.0.0.1

Newsgroups: comp.infosystems.www.authoring.html
Date: 2000/03/07
>I am looking for a utility which will turn all of my lower case HTML
>(written in, say, notepad) into upper case and perhaps indent it too.
>Does anyone know if such a program exists?

With the upcoming shift from html to xml/xhtml I would advice against converting your elements to upper case. XHTML is case sensitive, and only lower-case is allowed.

However, if you find documents hard to read with only lowercase, I would advice that you got an editor with source highlightning. One such Freeware program I recommend for the windows platform is 1stPage 2000, downloadable from <URL:http://www.evrsoft.com/> It also has a tool called HTML tidy which will convert case, and fix indentation for your html-documents.

If you're just after tidy, it can be downloaded for several platforms from <URL: http://www.w3.org/People/Raggett/tidy/>. It can fix other problems with the html, such as nesting errors, word-generated html.

Arve Bersvendsen