Style Tags in Flare Desktop Editors
In addition to the Stylesheet Editor, the XML Editor and Internal Text Editor are Flare Desktop’s primary editors when working with style elements. Once style properties are defined in the stylesheet, they can be applied to the content.
[Menu Proxy — Headings — Online — Depth3 ]
How to Identify Styles in the XML Editor
Flare Desktop's structure bars are a great visual tool for identifying topic tags and page architecture. The bars provide information about content and the styles that are applied to that content.
Tag Bars
-
Open Introduction.htm. Let’s look at styles from within the content file. The structure bars to the left of the content are "tag bars" that show blocks of content.
-
With the cursor in the XML Editor, hover your cursor over the h1 structure bar. Notice it shows an <h1> tag which corresponds to the h1 heading to the right.
Note To show or hide tag bars, click
at the bottom of the XML Editor.
-
Let's edit the h1 heading. It might look better without the 20px indentation. We can take action from the structure bars directly. Right-click the h1 tag bar.
- From the context menu, select Style Class > Edit Style Class. The Styles.css file opens in the Advanced view.
- In the left pane tree structure, ensure the h1 style has focus (if not, select it).
- From the local toolbar Show drop-down, select Show: Set (Locally) Properties – properties set in this stylesheet.
-
Expand the Box group. In the margin-left field, change the value to 0px, and press ENTER.
-
Click
to save your work.
- Go back to the Introduction.htm topic, and view the heading update.
-
Open Austin-City-Limits.htm. Let’s apply a different style to the last heading.
- Place your cursor anywhere in the “Venue” heading.
-
From the Home ribbon, select the Style drop-down, and choose h3. This is a quick way to apply a style to content.
Note Notice the styles available in the Style drop-down are valid for block-level (e.g., h3, p, div) content only. If we were looking to apply a style to character-level (e.g., span, b) content, we would have to select the appropriate text within the block (e.g., heading, paragraph) first, and the styles in the drop-down would correspond to its type.
-
Click
to save your work.
Span Bars
- Open Introduction.htm.
-
Under the "Climate" heading, place your cursor within the bold phrase “long and hot summers.” Notice the tag at the top part of the topic. This is a “span bar.” These bars show formatting tags at the character level.
Note To show or hide span bars, click
at the bottom of the XML Editor.
- Hover your cursor over the span bar at the top. The phrase's style is <span> class: Emphasis.
-
Right-click the span tag, and select Unbind. The style is removed from the text.
- Re-select the text “long and hot summers.”
-
From the Home ribbon, select Style Window. The Styles window pane opens to show you styles that are valid for character-level content.
Note In the previous steps we selected styles from the Home > Style drop-down. You can also apply styles from the Floating Style Picker by pressing CTRL+SHIFT+H. As you can see, there are multiple ways to apply a style.
-
From the Available Styles section, select span.Emphasis. The content changes back to its original state.
-
Click
to save your work.
How to Identify Styles in the Text Editor
An alternative way to view topic content or tags is through the Internal Text Editor. The editor displays the same information—just presented in a different way. Users who know their way around XHTML and CSS code might use the Text Editor more frequently.
- Open Introduction.htm.
-
At the bottom of the topic, select the Text Editor tab.
-
From the local toolbar, click
. By toggling the syntax colors off and on, it is easier to pinpoint how HTML and XHTML elements work hand in hand with CSS elements.
-
Notice how the <span> class: Emphasis style is written in true code.
- Select the XML Editor tab at the bottom to go back to the other view.
How to Edit a CSS File in the Text Editor
The following steps introduce you to editing styles using the Text Editor. A full understanding of CSS code is in no way a requirement for using Flare Desktop, but it is helpful to know styles can be edited this way. More advanced users may find this editor useful.
- From the Content Explorer, right-click the Styles.css file.
-
From the context menu, select Open with, and then select Internal Text Editor.
All the styles and properties from the Stylesheet Editor are displayed to the right in the Text Editor.
-
Scroll down to roughly line 210 to view the heading settings. Notice the property values reflect the updates we made in the Stylesheet Editor. (If you do not see line numbers to the left of the editor, from the local toolbar, click
. This shows or hides the numbered lines.)
- Let's change the font-family property for the h1 and h2 elements.
-
Click
to save all files.
- Open the Introduction.htm topic (or any topic) to view the updated headings.
- From the Window ribbon, select Close All Documents.