
July 20th, 2005, 04:14 PM
| | | Formatting HTML Source - Is there a utility?
Here's the scoop:
Does anyone remember the UNIX utility "pretty" for formatting C code?
What I'm looking for is a utility that will do two things:
1) Format the HTML code itself to make it more readable (indentation, line
breaks, etc.)
2) Optimize HTML to remove empty and redundant tags
Reason: Have you ever seen what kind of a mess you get when you paste WORD
(or other rich text) into a HTML editor like Front Page? Answer is a "Hello,
World" of about 50KB...
Recognising that the two requirements are somewhat contradictory, I may need
two utilities...are there any free ones available before I do it myself in
PERL?
--Maarten ( webnames.ca_NO_SPAM_@city.richmond.bc.ca ) | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
"just say NO to PDF" <stingray_67@no_spam.hotmail.com> wrote in message
news:XKDRa.15$5V2.471@news.bc.tac.net...[color=blue]
> Here's the scoop:
>
> Does anyone remember the UNIX utility "pretty" for formatting C code?
>
> What I'm looking for is a utility that will do two things:
> 1) Format the HTML code itself to make it more readable (indentation, line
> breaks, etc.)
> 2) Optimize HTML to remove empty and redundant tags
>
> Reason: Have you ever seen what kind of a mess you get when you paste WORD
> (or other rich text) into a HTML editor like Front Page? Answer is a[/color]
"Hello,[color=blue]
> World" of about 50KB...
>
> Recognising that the two requirements are somewhat contradictory, I may[/color]
need[color=blue]
> two utilities...are there any free ones available before I do it myself in
> PERL?
>
> --Maarten ( webnames.ca_NO_SPAM_@city.richmond.bc.ca )
>
>[/color]
Try HTML-Kit http://www.chami.com/html-kit/ | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
On Thu, 17 Jul 2003 13:29:31 -0700, just say NO to PDF wrote:
[color=blue]
> What I'm looking for is a utility that will do two things:
> 1) Format the HTML code itself to make it more readable (indentation, line
> breaks, etc.)
> 2) Optimize HTML to remove empty and redundant tags[/color]
Tidy does both of these. Someone has already posted a link to the old Tidy
site, but the newest versions can be found at http://tidy.sourceforge.net/
[color=blue]
> Reason: Have you ever seen what kind of a mess you get when you paste WORD
> (or other rich text) into a HTML editor like Front Page? Answer is a "Hello,
> World" of about 50KB...[/color]
Tidy has special routines for dealing with the output of FrontPage, Word,
etc...
--
Toby A Inkster BSc (Hons) ARCS | mailto:tobyink@goddamn.co.uk | pgp:0x6A2A7D39
aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:tai@jabber.linux.it http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
playing://(nothing) | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
try notepad.
Nothing beats notepad when it comes to web-design....
Michel
"just say NO to PDF" <stingray_67@no_spam.hotmail.com> wrote in message
news:XKDRa.15$5V2.471@news.bc.tac.net...[color=blue]
> Here's the scoop:
>
> Does anyone remember the UNIX utility "pretty" for formatting C code?
>
> What I'm looking for is a utility that will do two things:
> 1) Format the HTML code itself to make it more readable (indentation, line
> breaks, etc.)
> 2) Optimize HTML to remove empty and redundant tags
>
> Reason: Have you ever seen what kind of a mess you get when you paste WORD
> (or other rich text) into a HTML editor like Front Page? Answer is a[/color]
"Hello,[color=blue]
> World" of about 50KB...
>
> Recognising that the two requirements are somewhat contradictory, I may[/color]
need[color=blue]
> two utilities...are there any free ones available before I do it myself in
> PERL?
>
> --Maarten ( webnames.ca_NO_SPAM_@city.richmond.bc.ca )
>
>[/color] | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
John Bokma wrote:
[color=blue]
> Toby A Inkster wrote:
>[color=green]
>> On Fri, 18 Jul 2003 00:32:36 +0200, Michel wrote:
>>[color=darkred]
>>>Nothing beats notepad when it comes to web-design....[/color]
>>
>> Yeah, it does:
>>
>> http://www.nedit.org/[/color]
>
> Texpad ( http://www.textpad.com/ ) is cool too.[/color]
Nah, Crimson Editor is better than textpad any day. :)
<URL:http://crimsoneditor.com/>
--
To email a reply, remove (dash)ns(dash). Mail sent to the ns
address is automatically deleted and will not be read. | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
In article <bf7864$4q4$1@news.cistron.nl>, Michel
<webmaster@handleiding-online-nospam-aub.nl> wrote:
[color=blue]
> try notepad.
>
> Nothing beats notepad when it comes to web-design....[/color]
BBEdit.
'Nuff said.
--
Jim Royal
"Understanding is a three-edged sword" http://JimRoyal.com | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
In article <1058488673.699918@halkan.kabelfoon.nl>, postmaster@castleamber.com says...[color=blue]
> Toby A Inkster wrote:
>[color=green]
> > On Fri, 18 Jul 2003 00:32:36 +0200, Michel wrote:
> >
> >[color=darkred]
> >>Nothing beats notepad when it comes to web-design....[/color]
> >
> >
> > Yeah, it does:
> >
> > http://www.nedit.org/
> >[/color]
>
> Nirvana rocks :-)
>
> Texpad ( http://www.textpad.com/ ) is cool too. I like the clip library
> and the tabbed interface.
>
> John[/color]
There are also dandy macros you can add to TextPad, and when you add Tidy
to the Tools menu, what more could you want?
(another) John
_______________________________________________
C'est la vie! C'est la guerre! Say no more! | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
On Thu, 17 Jul 2003 13:29:31 -0700, just say NO to PDF
<stingray_67@no_spam.hotmail.com> wrote:
[color=blue]
> What I'm looking for is a utility that will do two things:
> 1) Format the HTML code itself to make it more readable (indentation,
> line
> breaks, etc.)
> 2) Optimize HTML to remove empty and redundant tags[/color]
JEdit <http://www.jedit.org> with XML/HTML and JTidy plugins. Requires
Java, though.
--
Lars | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
kchayka wrote:[color=blue][color=green]
>>Texpad ( http://www.textpad.com/ ) is cool too.[/color][/color]
That's a new one for me.
[color=blue]
> Nah, Crimson Editor is better than textpad any day. :)
> <URL:http://crimsoneditor.com/>[/color]
I tried that. The context highlighting, with different colors, was
great. But I couldn't live w/out my clip libraries in NoteTab, so I
went back. Does Crimson have anything like that?
--
Brian
follow the directions in my address to email me | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
In article <180720030026212115%jimroyal@canada.com>, noone@nowhere.com wrote:
[color=blue]
> BBEdit.
>
> 'Nuff said.[/color]
Amen old Mac buddy! I can't speak for any of the PC world programs, but I
can't imagine a better text editor. What would it do that BBEdit can't?
leo
--
<http://web0.greatbasin.net/~leo/> | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
On Fri, 18 Jul 2003 10:36:46 +0200, Stephen Poley <sbpoley@xs4all.nl>
wrote:
[color=blue]
>NoteTab is pretty good - and the Light version is free.[/color]
NoteTab Pro is pretty much what my world revolves around. Tidy is
integrated too, which is nice.
Ian
-- http://www.aspipes.org/ http://www.bookstacks.org/ | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
In article <leo-1807030132490001@leosmac.sparks.nv.us>, Leonard Blaisdell
wrote:
[color=blue]
> What would it do that BBEdit can't?[/color]
I don't know. But I bet emacs can do that.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään. | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
Exactly my point
And you're the only one yet to see it.
Regards,
Michel | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
"Michel" <webmaster@handleiding-online-nospam-aub.nl> wrote in message
news:bf8jsg$vtj$1@news.cistron.nl...[color=blue]
> Exactly my point[/color]
What exactly is your point? I don't see the post to which you are replying
to so you particular post is, to me, meaningless. | 
July 20th, 2005, 04:14 PM
| | | Re: Formatting HTML Source - Is there a utility?
> In article <1058488673.699918@halkan.kabelfoon.nl>,[color=blue]
> postmaster@castleamber.com says...[color=green]
>> Toby A Inkster wrote:
>>[color=darkred]
>>> On Fri, 18 Jul 2003 00:32:36 +0200, Michel wrote:
>>>
>>>
>>>> Nothing beats notepad when it comes to web-design....
>>>
>>>
>>> Yeah, it does:
>>>
>>> http://www.nedit.org/
>>>[/color]
>>
>> Nirvana rocks :-)
>>
>> Texpad ( http://www.textpad.com/ ) is cool too. I like the clip
>> library and the tabbed interface.
>>
>> John[/color]
>
> There are also dandy macros you can add to TextPad, and when you add
> Tidy to the Tools menu, what more could you want?[/color]
Completely agree, textpad is my favourite text editor.
I use it for XHTML with all my clip libraries and added tools, it's great.
I often use macros to escape all the text etc, very nice.
Also really good for C# as well, so my ASP.Net development speeds along.
--
BenM http://www.benmeadowcroft.com/ | 
July 20th, 2005, 04:15 PM
| | | Re: Formatting HTML Source - Is there a utility?
In article <bf8jsg$vtj$1@news.cistron.nl>, Michel wrote:[color=blue]
> Exactly my point[/color]
You said:
Nothing beats notepad when it comes to web-design....
[color=blue]
> And you're the only one yet to see it.[/color]
Well, who is familiar with notepad? It misses all things I am used in
text editors. I had to use Notepad for few hours one day not long back as
TheGun didn't work. It was useless. It don't understand unix line breaks,
for example. That alone makes it very bad for web design, where most
files do have unix file breaks.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään. | 
July 20th, 2005, 04:15 PM
| | | Re: Formatting HTML Source - Is there a utility?
Arve Bersvendsen wrote:
[color=blue]
> John Bokma wrote in news:1058474495.743828@halkan.kabelfoon.nl:
>
>[color=green]
>> http://www.w3.org/People/Raggett/tidy/[/color]
>
>
> Tidy now lives at <URL:http://tidy.sourceforge.net/>[/color]
Thanks! I noticed that when I followed the link mentioned there.
[color=blue]
> (And for prettyprinting of HTML, there's not much that beats tidy).[/color]
Haven't tried it yet. Since I handcode, I try to learn to pretty print
it myself :-) But I am going to compare soon, maybe it can give me some
advise :-).
John
--
email: mail(at)johnbokma.com (or reply) home: http://johnbokma.com/
UI design tips: http://johnbokma.com/websitedesign/ ~ ICQ 218175426 | 
July 20th, 2005, 04:15 PM
| | | Re: Formatting HTML Source - Is there a utility?
Brian wrote:[color=blue]
> kchayka wrote:
>[color=green][color=darkred]
>>> Texpad ( http://www.textpad.com/ ) is cool too.[/color][/color]
>
> That's a new one for me.[/color]
And has clip libraries.
John
--
email: mail(at)johnbokma.com (or reply) home: http://johnbokma.com/
UI design tips: http://johnbokma.com/websitedesign/ ~ ICQ 218175426 | 
July 20th, 2005, 04:15 PM
| | | Re: Formatting HTML Source - Is there a utility?
In article <$cHa4rEZmSG$EwSp@pigsonthewing.org.uk>, usenet200305
@pigsonthewing.org.uk says...[color=blue]
> In message <1058474495.743828@halkan.kabelfoon.nl>, John Bokma
> <postmaster@castleamber.com> writes[color=green][color=darkred]
> >> Does anyone remember the UNIX utility "pretty" for formatting C
> >>code?[/color]
> >
> > http://www.w3.org/People/Raggett/tidy/[/color]
>
> Does anyone know of a Windows equivalent?
>[/color]
There are windows builds of tidy, eg: http://tidy.sourceforge.net/trt/tidy_win32.zip
It can be integrated (or comes as standard with) htmlkit, notetab, emacs
- see: http://tidy.sourceforge.net/#binaries
And then there's the web interface at http://infohound.net/tidy/ | 
July 20th, 2005, 04:18 PM
| | | Re: Formatting HTML Source - Is there a utility?
In article <3F1D4AD9.1000704@bigfoot.com>, "Nicolai P. Zwar" <NPZwar@bigfoot.com> writes:
[color=blue]
>I tend to agree, though I would go with an editor specialized in HTML,
>such as CoffeeCup or FirtPage, the reason being that those tools color
>code the source code as you write it, which makes it easier to use and
>even newbies can spot unclosed tags etc. right away. Notepad is far too
>simple to be of any use unless you really want to make it hard on
>yourself. It doesn't even have a line counter.[/color]
I'm puzzled by this last remark. How would having a line counter help
somebody write HTML? I don't see the relationship. (I'm not a Notepad
partisan, I use vi.)
--
Michael F. Stemper
#include <Standard_Disclaimer>
Time flies like an arrow.
Fruit flies like a banana. | 
July 20th, 2005, 04:18 PM
| | | Re: Formatting HTML Source - Is there a utility?
Michael Stemper <mstemper@siemens-emis.com> wrote:
[color=blue]
>In article <3F1D4AD9.1000704@bigfoot.com>, "Nicolai P. Zwar" <NPZwar@bigfoot.com> writes:
>[color=green]
>>Notepad is far too simple to be of any use unless you really want
>>to make it hard on yourself. It doesn't even have a line counter.[/color]
>
>I'm puzzled by this last remark. How would having a line counter help
>somebody write HTML? I don't see the relationship.[/color]
Just one reason would be that the error reports (from a validator, or
even JavaScript errors from browsers) usually give the line number
that contains the code that caused the error.
Much easier to fix the error quickly if you can go straight to the
correct line.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/> | 
July 20th, 2005, 04:19 PM
| | | Re: Formatting HTML Source - Is there a utility?
You might like to try the BestAddress HTML editor ( http://www.mmaus.com/bestaddress.html ) - it has a line counter,
doesn't cost much and has loads of features.
Steve Pugh <steve@pugh.net> wrote in message news:<tq3thv0ionqlcs8kl0hc63834kg48hochj@4ax.com>. ..[color=blue]
> Michael Stemper <mstemper@siemens-emis.com> wrote:
>[color=green]
> >In article <3F1D4AD9.1000704@bigfoot.com>, "Nicolai P. Zwar" <NPZwar@bigfoot.com> writes:
> >[color=darkred]
> >>Notepad is far too simple to be of any use unless you really want
> >>to make it hard on yourself. It doesn't even have a line counter.[/color]
> >
> >I'm puzzled by this last remark. How would having a line counter help
> >somebody write HTML? I don't see the relationship.[/color]
>
> Just one reason would be that the error reports (from a validator, or
> even JavaScript errors from browsers) usually give the line number
> that contains the code that caused the error.
>
> Much easier to fix the error quickly if you can go straight to the
> correct line.
>
> Steve[/color] | 
July 20th, 2005, 04:19 PM
| | | Re: Formatting HTML Source - Is there a utility?
In article <2883b35f.0307241639.2d5df857@posting.google.com >, PC wrote:[color=blue]
> You might like to try the BestAddress HTML editor (
> http://www.mmaus.com/bestaddress.html ) - it has a line counter,
> doesn't cost much and has loads of features.[/color]
If editor is not free, it must be very good?
It has "in-built Source Securing capabilities"
that should say enaugh about quality.
Seems stupid to put money on shit
It's tutorials: http://www.mmaus.com/developer.html
And, no, there is no list of features anywhere. But the ones it mentions
aren't anyhow rare.
I can't see how HTML eidtor made by idiots would be good choise?
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään. | 
July 20th, 2005, 04:19 PM
| | | Re: Formatting HTML Source - Is there a utility?
In article <tq3thv0ionqlcs8kl0hc63834kg48hochj@4ax.com>, one of infinite monkeys
at the keyboard of Steve Pugh <steve@pugh.net> wrote:
[color=blue]
> Much easier to fix the error quickly if you can go straight to the
> correct line.[/color]
OK, what editor *doesn't* support that?
Or perhaps I should rephrase that: how many editors require you to jump
through hoops - like using a mouse or repeatedly using cursor controls -
to go to a particular line? I'd find such an editor tedious to use.
--
Nick Kew
In urgent need of paying work - see http://www.webthing.com/~nick/cv.html | 
July 20th, 2005, 04:19 PM
| | | Re: Formatting HTML Source - Is there a utility? nick@fenris.webthing.com (Nick Kew) wrote:[color=blue]
>In article <tq3thv0ionqlcs8kl0hc63834kg48hochj@4ax.com>, one of infinite monkeys
> at the keyboard of Steve Pugh <steve@pugh.net> wrote:
>[color=green]
>> Much easier to fix the error quickly if you can go straight to the
>> correct line.[/color]
>
>OK, what editor *doesn't* support that?[/color]
Notepad of course.
[color=blue]
>Or perhaps I should rephrase that: how many editors require you to jump
>through hoops - like using a mouse or repeatedly using cursor controls -
>to go to a particular line? I'd find such an editor tedious to use.[/color]
Yup.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/> | 
July 20th, 2005, 05:17 PM
| | | Re: Formatting HTML Source - Is there a utility?
"Michel" <webmaster@handleiding-online-nospam-aub.nl> schreef in bericht
news:bf7864$4q4$1@news.cistron.nl...[color=blue]
> try notepad.
>
> Nothing beats notepad when it comes to web-design....
>
> Michel[/color]
not even edlin? | 
July 20th, 2005, 05:17 PM
| | | Re: Formatting HTML Source - Is there a utility?
Steven wrote:[color=blue]
> "Michel" <webmaster@handleiding-online-nospam-aub.nl> schreef in bericht
> news:bf7864$4q4$1@news.cistron.nl...
>[color=green]
>>try notepad.
>>
>>Nothing beats notepad when it comes to web-design....
>>
>>Michel[/color]
>
>
> not even edlin?
>
>[/color]
NoteTab Pro by Fookes Software is wonderful and you can integrate
HTMLTidy into it if you want. There is a free version but the reasonably
priced Pro version is superior for HTML editing. (BTW: I am not
associated with Fookes Software in any way - just a very satisfied user.)
Mike
--
Mike Albrecht
Interlibrary Loan
Washington State University Libraries
Holland/New Library Room 101
Pullman, WA 99164-5610 http://www.wsulibs.wsu.edu
(509) 335-5517
(509) 335-0934 (FAX)
--------------------------------------
"... in circles 'round the Sun, doing rings around the Pole ..."
-- Gordon Lightfoot
"Stars appear and the shadows are a-fallin' ..."
-- Buddy Holly
'Tis the perception of the beautiful,
A fine extension of the faculties,
Platonic, universal, wonderful,
Drawn from the stars, and filtered through the skies,
Without which life would be extremely dull.
-- Lord Byron | 
July 20th, 2005, 05:18 PM
| | | Re: Formatting HTML Source - Is there a utility?
Mike Albrecht wrote:[color=blue]
>
> NoteTab Pro by Fookes Software is wonderful and you can integrate
> HTMLTidy into it if you want. There is a free version but the reasonably
> priced Pro version is superior for HTML editing.[/color]
In what way is the pro version better? I use the free version, and the
only thing I can think of that would be nice is syntax color highlighting.
Since this an authoring tools question, x-posted, f'ups set.
--
Brian
follow the directions in my address to email me |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over network members.
|