Skip to content
New issue

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

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

Already on GitHub? Sign in 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.

Copy link
Member

@pstaabp pstaabp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works fine. I'm not sure how I would use it though.

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

Successfully merging this pull request may close these issues.

2 participants