Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

macros to show a text file and a problem file alongside its code #1199

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Alex-Jordan
Copy link
Contributor

With this, have a problem file like

DOCUMENT();
loadMacros("PGbasicmacros.pl");
problem_with_code('newProblem.pg');
ENDDOCUMENT();

That is, assuming newProblem.pg is a problem file in your templates folder. You will see the problem file's text, then a horizontal rule, then the problem rendered.

I'm unsure if this would be useful, but perhaps in some place where we'd want to show the sample problem code alongside rendered output.

@Alex-Jordan
Copy link
Contributor Author

I guess this is not very useful since the problem editor does a fine job of showing problem code alongside a rendered problem.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant