Unstoppable Domains โ€” AI Assistant

Words in link from lower case To Title Case... HOW?

Spacemail by SpaceshipSpacemail by Spaceship
Watch
Impact
30
I have a bunch of 500 KB html pages, each containing over 9,000 links. The link-title words are currently all lower case, but I'd like to have each word Capitalized ('Title Case').

Dreamweaver can't do this automated, so does anyone know which HTML editor (freeware, or fully functioning trial) can? I searched and searched in Google etc. hoping to find a capable HTML editor, but no luck so far.

Please have a look at this example http://captaincruiseline.com/example.htm to see what exactly I need done.

Thanks in advance,
Rob
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
Judging by your example, this task shoud be pretty straight forward to write in PHP.


All you have to do is search for the <a href> and </a> tags, take everyting between them and capitalize the words. . . It would only take about an hour to write and test this script.

-Bob
 
0
•••
Thanks,
But unfortunately I don't do PHP, so that's why I asked for software recommendations instead. Also, with such big files, a (browser-based) script may not be able to pull it off.



moondog said:
Judging by your example, this task shoud be pretty straight forward to write in PHP.


All you have to do is search for the <a href> and </a> tags, take everyting between them and capitalize the words. . . It would only take about an hour to write and test this script.

-Bob
 
0
•••
theres a way to do it in CSS if you don't want to make it permanent.
Code:
text-transform: uppercase;
 
0
•••
Thanks, but these are not CSS based html pages, and I am not very familiar with CSS either. :(
Plus wouldn't what you suggested make the whole line in CAPS, as supposed to just the first letter of each word?
 
0
•••
I think what "tm" meant was to put this code in your <head></head> tag:

Code:
<head>
<style type="text/css">
a:link {
  text-transform: capitalize;
}
</style>
</head>

This will change every single link on a page to use capitalization. In Other Words The Links Will Look Like This.

Edit: here's more info - http://www.w3.org/TR/1998/WD-css2-19980128/text.html#caps-prop
 
Last edited:
0
•••
Code:
<head>
<style type="text/css">
a:link {
  text-transform: capitalize;
}
</style>
</head>

Cheers,

That works! It was not the way I needed it, but for this purpose it will do just fine.
Thanks everyone that posted for helping find a solution. :)

Rob
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back