Saturday, November 19, 2011

cfdump style fix

Sometimes when working with ColdFusion you just want to quickly dump out some variables into the page to see what's going wrong.  Normally this works fine, but if you happen to be working with a site that has a dark theme with a light colored font on the body, it can sometimes be difficult to read the output.

A simple solution is to add a class to your default stylesheet for the site.  Include the following rule:

.cfdump_struct {
     color: #000000 !important;

This will ensure that the body of the cfdump output is displayed in a dark color to make for easier reading.