To enable these behaviors on Mozilla platforms use the XBL wrapper moz-behaviors.xml. Does your browser support DHTML Behaviors? Here is a simple test. star-light.htc A DHTML Behavior that dynamically applies syntax highlighting to source listings (contained in a <pre/> tag for example). The syntax highlighter is fully configurable and modules exist for the following languages: JavaScript HTML CSS