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?
Code Samples
Moderators: Alexander Halser, Tim Green
-
- Posts: 25
- Joined: Fri Aug 26, 2022 9:45 am
- Contact:
Code Samples
Stephen Thompson
Technical Writer
Technical Writer
- Tim Green
- Site Admin
- Posts: 23186
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Code Samples
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.
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.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.