Compare module

From WeBWorK
(Difference between revisions)
Jump to: navigation, search
(Created page with '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 "hd…')
 
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 uncommenting some lines in Compare.pm).
+
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).
  
 
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.

Revision as of 13:16, 25 June 2011

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).

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.

follow us