• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

RH 2022: Search & Replace Content in HTML View

Community Beginner ,
Aug 16, 2023 Aug 16, 2023

Copy link to clipboard

Copied

Last question of the day... Outside of using an external tool, is there a way to search and replace tags in HTML view? For example, is there a way to change all instances of  <H2>Sample Text</H2> to something like <H23>Sample Text</H3>. Seems that the native search and replace feature only replaces topic content, and not the underlying code.

Views

70

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 16, 2023 Aug 16, 2023

Copy link to clipboard

Copied

I assume H23 is a typo and you meant H3.

 

Find and replace has an option to work in Source Code. The problem though is you want to change the opening tag and closing tag but not the heading. You would need to use a regular expression for that. If you don't know how to do that, find a friendly developer (they do exist 🙂 ) and ply them with chocolate. Unfortunately not all developers can write regular expressions.

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 16, 2023 Aug 16, 2023

Copy link to clipboard

Copied

LATEST

Yes... typo 🙂 And great! Thank you!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp