PDA

View Full Version : clean up HTML



lucifer
July 30th, 2001, 10:21
There was some mention of this in another thread but I think a new one is justified.

What progs are there about for rewriting/cleaning up HTML so that it conforms to some sort of standard.

a friend has got a site of several hundred pages that has lots of errors when it's validated.

HTMLTidy was mentioned. Do peeps recommend this or have any other suggestions?

polestar
July 30th, 2001, 15:44
Arachnophilia (which I rate very highly) does this, amongst many other things while remaining simple and uncluttered.

It can set the indents on tags and scripts etc, find mismatched tags, and beautify the html.

And it's freeware.

http://www.arachnoid.com/

lucifer
July 30th, 2001, 16:21
thanks m8

any others anyone?

meow
July 30th, 2001, 18:12
The riggety raggety one: http://www.w3.org/People/Raggett/tidy/
Want GUI? http://perso.wanadoo.fr/ablavier/TidyGUI/

lucifer
July 30th, 2001, 18:28
thanx

meow
July 30th, 2001, 19:32
polestar, you are a little retro like me I think. Have you seen Lutus' simple database app for comma delimited files? http://www.arachnoid.com/dbedit/index.html Do you happen do know something similar to this? I would like easier columnar sorting (i.e. just click on the header cell) and at least one field big enough to read a longer entry comfortably. I've found just one other and it has a lousy search and is boggled down with crappy animations.


Sorry for butting in on your thread Luce, but it seemed like a good opportunity. :p

Blizzy
July 30th, 2001, 20:33
aceHTML ...
you can find it at download.com

lucifer
July 31st, 2001, 04:12
these seem to be more around making it look nicer I want one that will remove/sort badley nested tags and stuff.

meow
July 31st, 2001, 04:24
That's what Tidy is supposed to do. If it can untangle a multiple table mess I don't know. I think that would be impossible since a "machine" can't know what's intended.
I'm not a user myself but I know it's used in the best circles. :rolleyes:

lucifer
July 31st, 2001, 04:36
people shouldn't write this nasty messed up code to start with :)

meow
July 31st, 2001, 04:46
The peculiar thing is that people that write their code by hand use Tidy as a validator. That it is not. I can't understand this. If I write <B> it's because I want <B>. If I wanted <STRONG> or <EM> I would write that. Why would I need Tidy to do it for me? Raggett himself says it's a cleanup tool for the superfluous output from MS Word and similar. Guess it's Raggett boy's holy status that makes the standard crazy but insecure think they can't live without it.
I believe it does a good job cleaning up, though. ":D"

lucifer
July 31st, 2001, 05:01
maybe I need to play with it some more. All my pages are perfect anyway ;) so maybe I need to find some messy ones about. muddle.f2s?

meow
July 31st, 2001, 05:14
Try www.microsoft.com.;)
I thought you needed it for some Word or ----Page crap?
<!-- I know! Run weep's page through it! :p-->

lucifer
July 31st, 2001, 05:31
Originally posted by meow
Try www.microsoft.com.;)
I thought you needed it for some Word or ----Page crap?
no this stuff was all done in notepad you'll be pleased to know



<!-- I know! Run weep's page through it! :p-->
so cruel

meow
July 31st, 2001, 05:50
Why not simply use a validator then? You have to do the corrections yourself of course. :rolleyes:
http://arealvalidator.com/

Weapon
July 31st, 2001, 06:13
Originally posted by lucifer
people shouldn't write this nasty messed up code to start with :)
lol becoz my (and meow's) favourite WYSIWYG frontpage 2000 is a pro at it :D :D and whats wrong with my page that I need to run it? I agree with lucifer you are cruel..........:mad: i mean it too

lucifer
July 31st, 2001, 06:14
cos it threw up 150 errors a page - many hundreds of pages poss thousands of them.

would you do that by hand

most errors are around quotes so I may end up writing a custom script to sort them as it is all in the same 'style' so shouldn't be too hard but I have better things to do with my time

like sunbathing :)

meow
July 31st, 2001, 06:50
Quotes? Have you heard of "Find and Replace"? Why didn't you quote in the first place? So much easier. :D

weepsie - I wasn't referring to you but to ----Page in general. Promise.;)

lucifer
July 31st, 2001, 08:16
it's stuff like

<font
face=Arial, Geneva, Helvetica size=-2 color=#FFCC00>
instead of
<font
face="Arial, Geneva, Helvetica" size="-2" color="#FFCC00">

I did not write this stuff I'm suppossed to be sorting it out for someone though.

I am not responsible :p

meow
July 31st, 2001, 08:30
I see. You said Notepad so I thought...He. I was to clean up some pages a friend had made at work. With FP. No one was to know I did it and not her. I accepted and she sent one sample page. Took about 2 hours until I realized it was quicker to rewrite it. Then it turned out that there were more than 100 pages, each about 60-70K code (!) and she thought I would do it for like $50. No deal! She still owes me for the hours I spent. :p

lucifer
July 31st, 2001, 08:36
these things suck:(

meow
July 31st, 2001, 08:43
Yeah. Nice friend, huh? She gets paid for hundreds of hours and think I can do her work "because I do it for fun anyway". A medical lexicon full of gore it was too. :mad:

polestar
July 31st, 2001, 08:46
Meow: Do you happen do know something similar to this?try this program...
http://jansfree.future.easyspace.com/nogen7.zip (441kb)

if you don't like it (but you will!), try one from this list I found:
http://home.pi.net/~verho037/jfdatabase.htm

Good Luck!

polestar
July 31st, 2001, 08:50
I'm sure there was a good one I used in qbasic (simple dos program), but the name escapes me for the moment.....

meow
July 31st, 2001, 08:51
http://jansfree.future.easyspace.com/nogen7.zip(441kb)
Error 404 Not Found
:p Quick, quick! What's it called so I can search for it. Nogen? Or do you have the setup and can mail it to me?

[Sorry. It was on the list you posted too. I'm testing. :p]

polestar
July 31st, 2001, 09:27
you've got it now?

meow
July 31st, 2001, 09:47
Yeah. That Nogen seems OK. Only it doesn't open old csv files correctly. Must be a setting somewhere. They open with only rows, no columns. I'm dumb! :confused:

polestar
July 31st, 2001, 11:08
Meow - what are old csv files? Aren't they all the same?

I don't have any probs with nogen, or commaworks which is another basic prog available at that site.

By the way, how the hell did you manage to get nogen when the links are all broken?

*edit* you do know excel (and probably the equivalent lotus prog) opens csv files?

meow
July 31st, 2001, 11:27
Yes, but they are too heavy for what I want (not much RAM, remember?:p) It's a little hard to explain. I write and edit the files mainly in my text editor but need something small to sort by column quickly.

I didn't mean old like "old format". The ones I have since earlier don't open with columns, just rows. Like:
Fruits,Vegetables Candy,Ice cream
AAAA,BBBBBB,CCCCC,DDDD

That is, they open like a text file. I don't get it. I'll figure it out when I've slept. There is no reason for this.

polestar
July 31st, 2001, 11:40
ok.....I'll look into it....