Difference between revisions of "Compare module"

From WeBWorK_wiki
Jump to navigation Jump to search
m (added tags)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The compare module comes with WeBWorK. It enables an instructor to view two pg problems. It renders both problems, and gives "diffs" of the source. If you have the program "hdiff" on your source, you can get a colored diff of the source files (this requires commenting and uncommenting some lines in webwork2/lib/WeBWorK/ContentGenerator/Instructor/Compare.pm -- search for hdiff to find them).
+
The compare module comes with WeBWorK. It enables an instructor to view two pg problems. It renders both problems, and gives "diffs" of the source.
   
 
To enable the compare module on your server, edit the file webwork2/lib/WeBWorK/ContentGenerator.pm. Search for Compare; it appears in one commented line. Uncomment that line, and restart your server.
 
To enable the compare module on your server, edit the file webwork2/lib/WeBWorK/ContentGenerator.pm. Search for Compare; it appears in one commented line. Uncomment that line, and restart your server.
  +
  +
If you have the program "hdiff" on your source, you can get a colored diff of the source files. To enable this, search for hdiff in the file webwork2/lib/WeBWorK/ContentGenerator/Instructor/Compare.pm and change the value of $use_hdiff to 1.
  +
  +
[[Category:Instructors]]
  +
[[Category:Authors]]
  +
[[Category:Administrators]]
  +
[[Category:Needs_Work]]

Latest revision as of 18:20, 22 June 2021

The compare module comes with WeBWorK. It enables an instructor to view two pg problems. It renders both problems, and gives "diffs" of the source.

To enable the compare module on your server, edit the file webwork2/lib/WeBWorK/ContentGenerator.pm. Search for Compare; it appears in one commented line. Uncomment that line, and restart your server.

If you have the program "hdiff" on your source, you can get a colored diff of the source files. To enable this, search for hdiff in the file webwork2/lib/WeBWorK/ContentGenerator/Instructor/Compare.pm and change the value of $use_hdiff to 1.