The PDF Maker

Product details

Q: Can I have code (i.e. python) to be formatted as dynamic content?

I want to use it for making coding assignments and exams for my programming students.

epitomiPLUSJul 20, 2025
Founder Team
Rida_ThePDFMaker

Rida_ThePDFMaker

Jul 21, 2025

A: At the moment, code blocks are not officially supported as dynamic content. However, you can include Python code as part of the dynamic content if it is structured as plain text.
To ensure readability and proper formatting:

Use consistent indentation (spaces, not tabs).
Avoid special characters that may be interpreted as control codes or placeholders.
Wrap the code in triple backticks (```) or use indentation (like 4 spaces) when displaying it in output templates.

This way, while it’s not a "true" code block in a dynamic editor, it is still readable and usable for assignments or exams.

Share
Helpful?
Log in to join the conversation
Posted: Jul 21, 2025

Could you add it as feature request?