[system] / trunk / pg / macros / PGbasicmacros.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/PGbasicmacros.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 3519 Revision 3520
42 $BEGIN_ONE_COLUMN, 42 $BEGIN_ONE_COLUMN,
43 $END_ONE_COLUMN, 43 $END_ONE_COLUMN,
44 $SOL, 44 $SOL,
45 $SOLUTION, 45 $SOLUTION,
46 $HINT, 46 $HINT,
47 $COMMENT,
47 $US, 48 $US,
48 $SPACE, 49 $SPACE,
49 $BBOLD, 50 $BBOLD,
50 $EBOLD, 51 $EBOLD,
51 $BITALIC, 52 $BITALIC,
974 975
975 976
976# End hints and solutions macros 977# End hints and solutions macros
977################################# 978#################################
978 979
980=head2 Comments to instructors
981
982 COMMENT('text','text2',...);
983
984Takes the text to be lines of a comment to be shown only
985in the Library Browser below the rendered problem.
986
987The function COMMENT stores the needed html in the variable
988pgComment, which gets transfered to the flag 'comment' in PG_FLAGS.
989
990=cut
991
992# Add a comment which will display in the Library browser
993# Currently, the only output is html
994
995sub COMMENT {
996 my @in = @_;
997 my $out = join("$BR", @in);
998 my $out = '<div class=\"AuthorComment\">'.$out.'</div>';
999
1000 PG_restricted_eval(q!$main::pgComment = "!.$out.q!"!);
1001 return('');
1002}
1003
1004#################################
979# Produces a random number between $begin and $end with increment 1. 1005# Produces a random number between $begin and $end with increment 1.
980# You do not have to worry about integer or floating point types. 1006# You do not have to worry about integer or floating point types.
981 1007
982=head2 Pseudo-random number generator 1008=head2 Pseudo-random number generator
983 1009

Legend:
Removed from v.3519  
changed lines
  Added in v.3520

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9