/    Sign up×
Community /Pin to ProfileBookmark

Convert HTML tags to lowercase in multiple files?

Hello everyone, I am working for a company and they are converting their whole site into XHTML. Is there any program out there that can convert HTML tags to lowercase in multiple HTML files in one batch process? They use Macromedia Homesite here, which has a function to do it to a single file at a time, but there are thousands of HTML pages on their server which would take forever! Any recommendations?

Thanks!

AJ

to post a comment
HTML

9 Comments(s)

Copy linkTweet thisAlerts:
@KDLAJun 14.2007 — In Dreamweaver, you can do a search and replace for a page, a folder, or for an entire site. I would assume that Homesite is similar.

http://websitetips.com/articles/homesite/findreplace/

KDLA
Copy linkTweet thisAlerts:
@ajrock2000authorJun 14.2007 — Yeah, we have been doing that with other xhtml changes. The lowercase function appears in the "Edit" menu in Homesite, and is not available for many files...What should I do a search and replace for? All html tags in the whole site need to be lowercased to pass validation...
Copy linkTweet thisAlerts:
@KDLAJun 14.2007 — This might sound like the long way of doing it, but just go through tag by tag and replace. One way you can make it a bit shorter is to use only part of the tag: TD> or P>

that way, it'll find both the opening and closing tag. But this won't help with tags containing internal HTML, such as <TD valign=bottom>

I had the same problem with Visual Studio documents that my programmers were handing me: all caps coding. ?

Good Luck

KDLA
Copy linkTweet thisAlerts:
@ajrock2000authorJun 14.2007 — Thank you for your replies. The worst case scenerio would be that I would have to open every page and do the "convert tags to lowercase" function for that page in homesite and save it, but goodness there are probably well over 2,500 html pages in the whole site! ?

I will probably see if I can come up with a regular expression to do this, although it would have to be much tested before I will try it on the site...

Thanks,

AJ
Copy linkTweet thisAlerts:
@FangJun 14.2007 — HTML-Kit can do it.

You can also run Tidy with a set of configeration options, using a stand alone version of Tidy, or from within HTML-Kit.
Copy linkTweet thisAlerts:
@WebJoelJun 15.2007 — I think "aceHTML" can do this, -convert all CAPS code to lower-case, globally. They have a freeware version that not only does this as part of it's normal validation, but can highlight and suggest corrections to invalid code.
Copy linkTweet thisAlerts:
@Major_PayneJun 15.2007 — AceHTML's is under Tools/Code Optimizer and click 'Several documents', then File Conversions tab at bottom. You'll have to add attributes you want converted to lower case as only two are listed. It should do a whole directory on your HD. You can check box for subdirectories.

Ron
Copy linkTweet thisAlerts:
@ajrock2000authorJun 15.2007 — I think "aceHTML" can do this, -convert all CAPS code to lower-case, globally. They have a freeware version that not only does this as part of it's normal validation, but can highlight and suggest corrections to invalid code.[/QUOTE]


AceHTML's is under Tools/Code Optimizer and click 'Several documents', then File Conversions tab at bottom. You'll have to add attributes you want converted to lower case as only two are listed. It should do a whole directory on your HD. You can check box for subdirectories.

Ron[/QUOTE]



Thank you so much, guys!
Copy linkTweet thisAlerts:
@Major_PayneJun 15.2007 — Most welcome. 2500+ pages. Whew! Don't envy you this job.

Ron
×

Success!

Help @ajrock2000 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.10,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...