Dreamweaver rewriting valid code as camelCase

I’ve been using Dreamweaver for years. One thing that has always bothered me is that it wants to change my lowercase JavaScript event attributes to camelCase, but it only does this after I close the file. So when I wrote the code, it was valid XHTML 1.0 Strict, but after I saved the file, it no longer was. Dreamweaver was messing up my validation and it was making me furious.

So, if I have typed

<body onload=”init()”>

Once I’ve closed the file, it’s changed to

<body onLoad=”init()”>

It will do this for all the tags: onload, onblur, onfocus, etc…

I’ve tried setting my default document type, the validation fallback, everything I could find to XHTML 1.0 Strict, which requires lowercase attributes, but Dreamweaver isn’t smart enough to realize that I mean for this to apply to all of my files, even .php includes.

Finally, I’d had enough and started looking for a solution. I found two different ways of getting this done.

First method: click on Edit -> Preferences -> Code Format. Change “Default tag case” to lowercase, “Default attribute case” to lowercase=’value’, and in “Override case of”, place checkmarks next to Tags and Attributes.

You can also modify each of these attributes in the Tag Library Editor.

Second method: click on Edit -> Preferences -> Code Hints, and under the Menus area, click on the Tag Library Editor link.

A Tag Library Editor window will open. If you wanted to change the body’s onload attribute, for example, you would expand the HTML folder, then the body folder. Highlight onLoad and in the “Attribute case:” menu, select Lowercase, then click “Set default”.

At long last, valid XHTML code from Dreamweaver, even if I shouldn’t be using body onload and inline event handlers in the first place.

Aleph Studios Is Launched

I’m excited to announce a new site of mine – Aleph Studios – which will be the new home for my web development freelance work.

Madsen Cycles – Weekly Give-Away

A Madsen bicycle is sort of like a pedal-powered El Camino: odd, but undeniably useful-looking.

Installing Chromium on Fedora

How to install Chromium on Fedora 11, both via YUM and by manually downloading and installing the required files.

New site launch: August 2009

I’ve just launched a new site for Anna Maria College. Valid XHTML 1.0 Strict, CSS, JavaScript and Flash. I used the nifty Page Speed Firebug plugin to optimize page load times.

Upgrading GoDaddy Hosting to PHP 5.x from PHP 4.3.11

How to configure your GoDaddy linux hosting plan and .htaccess file to run your *.php pages on PHP 5.2.5.

HTML auction template generator

Simple Auction Wizard is an online HTML template generator for auction websites like eBay. It’s fast, free, and easy to use.

200 N. Kenilworth Ave. Apt. 2, Oak Park, Illinois, 60302

We are selling our two-bedroom condo at 200 N. Kenilworth Ave., Oak Park, Illinois, 60302. Great price. Unbelievable location. Walking distance to everything.

Fixed: USB drive unusable, unformattable, and reporting 0 bytes capacity

Fixing a USB flash drive that pops up “Please insert a disk into drive X:.” when the drive letter is clicked, reports 0 bytes capacity in the properties, and cannot be formatted in Windows.

Toolbar Page Rank of 6 and 3 one-line sitelinks

For posterity, a quick note that today I noticed http://www.ardamis.com/ was back up to a toolbar page rank of 6 after a number of months at 5. A little later in the day, I noticed 3 one-line sitelinks to: Colophon – About – Portfolio. We’ll, I’d have preferred different pages, but these are my first [...]