Home › Forums › General XMetaL Discussion › Different stylesheet for ‘Tags On’ and ‘Normal’ view? › Reply To: Different stylesheet for ‘Tags On’ and ‘Normal’ view?
Reply to: Different stylesheet for ‘Tags On’ and ‘Normal’ view?January 6, 2012 at 5:43 pm
There is no setting or special filename that specifies a different CSS for a different view. The only two CSS files that are loaded automatically when a DTD is loaded are the ones that match
There are other strategies for changing CSS using script but they do not work as well as this script example. Before we implemented the APIs I used in my example the only option was to have multiple files on disk, change the filename of one of them (to match the conventions above) and then use an older API to refresh the CSS.
If you wish to load your CSS from a file (for authoring convenience for example) you could create separate CSS files (of any name) and load them into this script using the API Application.FileToString()