Forum Moderators: phranque
Can anyone recommend an app (preferably free/open source) that is very configurable that will let me do some of the following:
-choose which tags to get rid of
-choose which attributes to get rid of
-choose which symbols / regex patterns to get rid of or find/replace
-control or force good indentations for nested tags
-force single lines where there line breaks between tags
It can get some of the job done I guess but I was wanting something more along the lines of ReNamer which is a wonderful free app for renaming lots of files at once and can take user input etc.
If I were the me of a year ago I would write my own app, but I've been spending too much time re-inventing wheels. So I've promised myself to look harder for wheels that are already out there.
Still open to suggestions...
However, you may make a few mistakes that need linting.
I use the following apps for theses functions:
CSE HTML Validator to:
-choose which tags to get rid of
NoteTab to:
- find/replace
-control or force good indentations for nested tags
-force single lines where there line breaks between tags
I use CSS for
-control all the attributes
Note:
-control or force good indentations for nested tags
I don't know about this one.
I once had to optimize a site with a mess for code. I started to work on it, and a few minutes/hours into it, I just gave up and re-did the site with my own coding.
It took around the same or less than it would have taken me to clean it up. But the true up side is that the code was built from the ground up with SEs and Accesability in mind; clean logical code. I am glad I did it that way, it took less and I did more.