Style Insight for non-referenced css files

TopStyle has been discontinued and support is no longer available. The forum is read-only. NOTE: TopStyle was not developed by the makers of CSS HTML Validator.
KBeng
Rank 0 - Newcomer
Posts: 9
Joined: Tue May 29, 2012 4:42 am

Style Insight for non-referenced css files

Post by KBeng »

As I work a lot with html code template snippets where isn't any reference/link to a css file, I can't use the style insight feature for e.g. css classes. It would be nice to have a feature to include all css files in a site or a certain folder.
User avatar
TopStyle Support
Rank VI - Professional
Posts: 506
Joined: Sat Jun 13, 2009 12:38 pm

Re: Style Insight for non-referenced css files

Post by TopStyle Support »

Good news: there is an undocumented feature for this.

You'll need to create a file named TopStyle.cfg in the directory where your HTML doc is.

This TopStyle.cfg should look something like this:

[links]
C:\Users\svanas\Desktop\1.css
C:\Users\svanas\Desktop\2.css

You can add as many links to other style sheets as you like. Here are the rules:
* they need to be under the [links] section
* a relative path should start with ./ or .\
* they need to exist
KBeng
Rank 0 - Newcomer
Posts: 9
Joined: Tue May 29, 2012 4:42 am

Re: Style Insight for non-referenced css files

Post by KBeng »

Works like a charm. :)