HowTo's
Enter short tips on using WeBWorK and working with the WeBWorK community.
DisplayQuestionWithCode
Viewing page version #3
(Restore this version)
(Restore this version)
Modified: 25 June 2007, 5:00 PM User: Michael Gage →
The short answer is:
To enable the Show Problem Source button, place source.pl as one of the files listed in loadMacros(.....) at the top of the source code for the question.
However this will only work on courses that have been enabled in the following ways:
In the webwork2/conf/webwork.apache-config file insert this snippet:
# Provide access to course-specific resources. # ScriptAliasMatch $webwork_courses_url/(/*)/show-source.cgi/(.*) $webwork_courses_dir/\$1/html/show-source.cgi/\$2
Insert the file https://math.webwork.rochester.edu/webwork2_course_files/webwork_presentations/show-source.html in the myCourse/html directories of the courses you wish to enable.