Syntax Highlighter Example (prism.js)

You can use a syntax highlighter like prism.js to highlight code examples in your documentation to make them easier to understand for the reader.

The Syntax Highlighting will not work in the Author view of RoboHelp, as RoboHelp blocks the execution of JavaScript code for security reasons.

Some examples

Here you go with some examples:

HTML

<body>
  <h1>This is my heading</h1>
  <p class="BodyText">test</p>
</body>

XML

<body>
  <h1>This is my heading</h1>
  <p class="BodyText">test</p>
</body>

CSS

p {
  margin-top: 20px;
  margin-right: 5px;
  margin-bottom: 20px;
  margin-left: 5px;
}

json

{
  "aliceblue": "#f0f8ff",
  "antiquewhite": "#faebd7",
  "aqua": "#00ffff",
  "brown": "#a52a2a",
}

And this is an external link: Adobe