CSS Rule finder in DW???

anna

New Member
In Dreamweaver (CS4) is there a way to select a css rule and find out if it's being used anywhere?

I've got this one rule and can't tell if it's being used, and I'm not having any luck figuring it out.

Thank you, in advance, for any suggestions!
 

sysgenmedia

New Member
If you've got all of the files locally on your machine, you could use Dreamweaver's search feature. Ctrl+F by default or Edit->Find and Replace.

On the screen that comes up switch the "Find in" dropdown to "Entire Current Local Site", then search for the name of the rule.

It will search all the files that you have in the local DW site.

Best of luck!
 

sysgenmedia

New Member
Cool. Let me know if it works for you.

One thing to keep in mind is that it only searches local files. I've worked on projects with CMS or eCommerce platforms where I've been unable for hours to find a section of code I know must be somewhere, only to realize that there was a few folders that I didn't have locally and that weren't being searched.

One other caveat is that it only searches standard files types and files types that it's set to "Open in code view". You may need to tell it if you want to search .template, .tpl, .htaccess, .ini, etc. You can do this in Edit->Prefereneces.... File Types / Editors... and adding the extensions you need in the "Open in code view" box separated by spaces.
 

LouTheDesigner

New Member
I wish Adobe would have thought of such a feature. I suppose we'll have to wait for CS6? They should put the "find rule" button right in the CSS Panel.

-Lou
 
Top