The PDF Maker

Product details
epitomiepitomi
epitomi
Jul 20, 2025

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.

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

Could you add it as feature request?

Sure, I’ll ask the team to add this as a feature request. Let me know if there’s anything else you need, or if you’d like a quick platform walkthrough—we can book a meeting together for that.