Page 1 of 1

Expand/collapse elements for htmlhelp

Posted: Thu Feb 22, 2024 8:07 pm
by BentCat
Is it possible to publish a htmlhelp (.chm) file with expand/collapse functionality within a topic? I would like to export topics with collapsed text/code blocks/etc. that the user can expand if they're interested in learning more about that subject matter.

As far as I can tell from google this is not an option, but thought that someone here might have workarounds that would make it work.

Re: Expand/collapse elements for htmlhelp

Posted: Fri Feb 23, 2024 9:13 am
by Radu
Hi,
I do not know for sure, you can add custom CSS selectors by setting the "args.css" and "args.copy.css" parameters in your transformation scenario, but in general the HTML viewer is quite limited in functionality, I'm not sure if it would allow for embedding and executing Javascript code in the HTMLs and how complex that Javascript could be. There is a transformation parameter named "args.hdf" which can take a value which is used in the header part of all generated HTML files.
It appears it is possible to embed Javascript in the CHM HTMLs:
https://learn.microsoft.com/en-us/previ ... cript-code
So you might have the ingredients to do this but I do not have a clear sequence of steps for you. HTMLHelp is a deprecated technology and we are not investing further in it.
Regards,
Radu

Re: Expand/collapse elements for htmlhelp

Posted: Fri Feb 23, 2024 6:33 pm
by BentCat
Thanks Radu!