Code Samples

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Post Reply
WrightStuff
Posts: 25
Joined: Fri Aug 26, 2022 9:45 am
Contact:

Code Samples

Unread post by WrightStuff »

I have HTML with a lot of code samples in the HTML between <pre> tags, in the published output of my project the code looks miniscule.
How do I display these code samples?
Stephen Thompson
Technical Writer
User avatar
Tim Green
Site Admin
Posts: 23178
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Code Samples

Unread post by Tim Green »

Don't use <pre> tags inside Help+Manual. That won't work since that is not an XML tag and if you insert it in the XML editor it will just be silently deleted. instead, use the Code Sample style, which you can edit for your needs in Styles > Edit Styles in the Write tab. In addition to this, Help+Manual has a configurable syntax highlighter.

See here in the online documentation:

https://helpandmanual.com/help/hm_worki ... yntax.html
https://helpandmanual.com/help/hm_ref_r ... yntax.html

This is for Help+Manual 8, but it works the same in version 7.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Post Reply