Skip to main content
Ayrton_5
Inspiring
September 12, 2016
Answered

Robohelp 2015: remove font attribute from any instance of a style

  • September 12, 2016
  • 1 reply
  • 826 views

I am working with a fairly old help file, imported from (I think) Robohelp 7. All the pages are topped with a banner that uses 'Heading 1'. I need to change the colours of 'Heading 1' to match corporate policy. I have updated the relevant CSS file. I have updated all pages to make sure they are referencing the correct CSS file. On pages that I have written since I took on the task, the new colours are applied as I would hope - albeit at design time, with a strange pattern of diagonal lines on the background colour.

The problem is with the older pages. Whilst they also use 'Heading 1', they appear to have a font attribute placed over the top of the embedded style. This means they do not inherit the white lettering of my new style, they remain black, which renders them unreadable against my new background colour. If I right click on an affected heading, I can 'remove attribute' and the black text turns white as per the CSS. However there are far too many pages thus affected for me to address them all.

Is there a way to remove all font attributes from anything having the 'Heading 1' style?

This topic has been closed for replies.
Correct answer Peter Grainge

Search has a Starts With and Ends With feature. You need to be careful with it so back up first.

1 reply

Peter Grainge
Community Expert
September 12, 2016

You to remove the inline styling use multi-file find and replace. Backup first.

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Ayrton_5
Ayrton_5Author
Inspiring
September 14, 2016

Thank you for the response, I didn't know what I was looking for in the HTML really but I have now figured it out thanks to your nudge. In this example the title "Topics" is wrapped in its own inline style and then with a tag for Heading 1:

<h1 id="H11" style="position: relative;"><font style="font-size: 14pt;"

  color="#010100" size="4">Topics</font></h1>

As you can see RH has broken the text over two lines. What you cannot see in the snip is a number of tab characters which are also present. I have figured out that if I remove the font style tag, RH will clean up the </font> for me. Which is helpful. However there could be up to about 1,000 of these to deal with so I need to use Find and Replace as you suggest. However... I am struggling to get F&R to work on a string that contains a carriage return. Can this be done?

Peter Grainge
Peter GraingeCorrect answer
Community Expert
September 15, 2016

Search has a Starts With and Ends With feature. You need to be careful with it so back up first.

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.