Difference between revisions of "CommentsForInstructors"

From WeBWorK_wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<h2>Your title here: PG Code Snippet</h2>
+
<h2>Comments for Instructors: PG Code Snippet</h2>
   
 
<!-- Header for these sections -- no modification needed -->
 
<!-- Header for these sections -- no modification needed -->

Revision as of 18:23, 2 January 2010

Comments for Instructors: PG Code Snippet


This code snippet shows the essential PG code to include comments for instructors that are visible only when the PG file is viewed in the Library Browser. Note that this is an insertion, not a complete PG file. This code will have to be incorporated into the problem file on which you are working.

Problem Techniques Index

PG problem file Explanation
ANS( $expr->cmp() );

COMMENT("This problem is not randomized.");

ENDDOCUMENT();

Answer Evaluation: Include the COMMENT(); just before the ENDDOCUMENT();

Problem Techniques Index