Skip to main content
Inspiring
December 13, 2018
Question

Adding custom tags in RoboHelp 2017

  • December 13, 2018
  • 1 reply
  • 1312 views

To identify the content that is required by tooltips in my application, I currently add tags to the start and end of the relevant content in each Help topic. They use the following format:

<tooltipabc>

</tooltipabc>

The relevant tooltip content is picked up by the software, which is great. However, RoboHelp does not like them as it sees them as alien, and highlights them in red. When they are used within tables, they appear to corrupt the table, and make it hard to edit it. My question please: could anyone suggest a way of hiding information within a topic that does not involve using tags such as these? This information should not be visible to the reader, but could hopefully be picked up by the application, which would look for tags beginning with a certain word, for example, "tooltip". I currently use the HTML5 output. I'd really appreciate any advice on this. Thanks.

This topic has been closed for replies.

1 reply

Peter Grainge
Community Expert
Community Expert
December 13, 2018

I don't think it is what you want but maybe Item 6 at Snippets will lead you somewhere.


See www.grainge.org for free RoboHelp and Authoring information.

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Community Expert
December 13, 2018

Assuming that the application slurps in the content surrounded by the custom tags (that is, you want to use the content in the application, not put a tooltip over the content in your help file) then I think the data-* attributes are what you want. You'd have to enter them in the code and I can't guarantee that RH will leave them alone, but worth a try. (For what it's worth, RH11 seems to leave the attribute alone both after editing a topic and when generated.)

Using data attributes | MDN

MDennettiAuthor
Inspiring
December 14, 2018

Thanks both. I do want to use the content in the application, but need the tags to be hidden in the displayed topic. I have had a quick try at getting this working by adding <article> tags and then adding 'data' items within them, but found that anything within these tags is displayed when I preview the topic.