Style Insight for non-referenced css files

Post anything about TopStyle here. NOTE: TopStyle has been discontinued.

Moderator: TopStyle Support

Post Reply
KBeng
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 9
Joined: Tue May 29, 2012 4:42 am

Style Insight for non-referenced css files

Post by KBeng » Sat Dec 29, 2012 9:29 am

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
Rank VI - Professional
Posts: 507
Joined: Sat Jun 13, 2009 12:38 pm
Contact:

Re: Style Insight for non-referenced css files

Post by TopStyle Support » Sun Dec 30, 2012 5:58 am

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
Rank 0 - Newcomer
Posts: 9
Joined: Tue May 29, 2012 4:42 am

Re: Style Insight for non-referenced css files

Post by KBeng » Thu Jan 03, 2013 8:24 am

Works like a charm. :)

Post Reply