O'Reilly logo

HTML to MadCap Flare by Peter Lavin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Scripting Tasks

Because Flare files are XML files, you can use scripts to perform tasks that either can’t be performed through the user interface or would be very tedious if done that way. In this chapter, I will explore several tasks that can be automated with scripts, including removing empty <p> tags, formatting JSON code, and changing XML comments into Flare annotations.

The scripts presented here can be used with any well-formed HTML file, not just files produced by Flare. And as long as your files are well formed, they do not have to be valid XHTML. For example, they can be missing a <head> tag, or they can contain Flare proprietary markup.

For this reason, these scripts can be used either before or after import. However, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required