You can view a list of styles in your project that have not yet been applied to content in any files. If you do not use a particular style class, you can remove it from the stylesheet. You can also use the "disable" feature to hide styles that you do not want to be displayed in the stylesheet; you can access this feature from the Options drop-down button in the local toolbar of the Stylesheet Editor.
- Open a project.
Select the View ribbon. In the Dynamic Reports section, select More Reports>Unused Items.
The Unused Items window pane opens, which allows you to view various unused elements in the project (such as bookmarks, condition tags, content files, CSH IDs, images, variables, styles, file tags, and topics not linked).
- Click the drop-down field at the top of the window pane and select Unused Styles. The
unused stylesin the project are listed.
To see more of the information in the window pane, drag the divider bar to make the pane wider:
- Selector Displays the name of the parent style, followed by a period and the name of the class under that style (e.g., p.tip).
- Declarations Displays any property settings that you have set for the style class.
- File Displays the name of the file.
If a certain number of items have been found, page navigation buttons in the local toolbar may be enabled. You can use these buttons to go to additional pages to display more items. You also have the option to view all items at once in one long list. This is called the View All option. You can toggle these views by clicking the View All/View as Pages button in the local toolbar. The button displays the opposite of whatever view is currently activated (e.g., If the View All option is currently active, the button shows View as Pages to indicate that if clicked, the button will switch the window pane to the View as Pages option).
If you want to remove any
unused stylesfrom Analyzer, as well as from the project being analyzed, select the stylein the list and click in the local toolbar.
You can open
the stylesheet for any stylein the list to view or modifyit in the Stylesheet Editor. You can open the stylesheetin the Analyzer interface or in the Flare project.
to open the file in the analyzer interface
Double-click the file in the window pane. The benefit of using this method is that it is quick and convenient. You have access to the features normally available in the editor (but not necessarily to all of the features available elsewhere in Flare).
to open the file in flare
- In the window pane, click on the file.
- Select File>Send to Flare.
The benefit of using this method is that you have access to all of the features in the application, not just those available from the editor.