I am trying to produce a definitive list of all items that have a given style applied to them.
I can do a source code search for <b class="ExampleStyle"> or a Regular Expressions to find <b class="ExampleStyle">[\s\S]*</b>
When I do, Flare will return a list of every file which contains this string. Unfortunately, the Context column of the Fine results has a character limit and the results are truncated. I can open each file, find the word(s) to which the style is applied, and type it in manually - but there are literally hundreds of words in some cases, so I'd like to automate it.
Is there any way to either create an Analyzer report or to change that Context length so I can see the content after the string?
I can't upload a picture but I can show what I see in text:
Context
...to a USB device, an <b class="ExampleSty...
...of a name, such as <b class="ExampleSty...
etc
What I want to see, of course, is:
Context
<b class="ExampleStyle">USB device name</b>
<b class="ExampleStyle">Smith</b>
etc
With that, I could export to a CSV file and then strip out the style, leaving me with a list of words that use the example style.
Report or list of items using a specific style
-
marchenland
- Jr. Propeller Head
- Posts: 9
- Joined: Thu Jun 28, 2012 5:32 pm
Re: Report or list of items using a specific style
I was just playing with the new Find Elements feature in Flare 2018 and it might get you closer.
You can search on style classes e.g. ExampleStyle, or tags (using the Markup option) and the context seems to be the entire tag. It doesn't seem to support regex, but you might be able to filter in excel after you export to csv.
e.g. style class
Context
<p class="ExampleStyle">This form only works in Internet Explorer</p>
or
e.g. b tag
Context
<b>Yes</b>
<b style="font-weight:normal">Training Module</b>
You can search on style classes e.g. ExampleStyle, or tags (using the Markup option) and the context seems to be the entire tag. It doesn't seem to support regex, but you might be able to filter in excel after you export to csv.
e.g. style class
Context
<p class="ExampleStyle">This form only works in Internet Explorer</p>
or
e.g. b tag
Context
<b>Yes</b>
<b style="font-weight:normal">Training Module</b>