User:Malcolm/sandbox1

From WeBWorK_wiki
Jump to navigation Jump to search

Some PG code raw

loadMacros(

"PG.pl",
"PGbasicmacros.pl",
"PGchoicemacros.pl",
"PGanswermacros.pl",
"PGauxiliaryFunctions.pl"
);

TEXT(beginproblem());

$showPartialCorrectAnswers = 1;

as <code>

loadMacros(

"PG.pl",
"PGbasicmacros.pl",
"PGchoicemacros.pl",
"PGanswermacros.pl",
"PGauxiliaryFunctions.pl"
);

TEXT(beginproblem());

$showPartialCorrectAnswers = 1;

Using <syntaxhighlight>

<syntaxhighlight> loadMacros(

"PG.pl",
"PGbasicmacros.pl",
"PGchoicemacros.pl",
"PGanswermacros.pl",
"PGauxiliaryFunctions.pl"
);

TEXT(beginproblem());

$showPartialCorrectAnswers = 1;

</syntaxhighlight>

Using <syntaxhighlight lang="perl" enclose="div" highlight="7,9-11">

<syntaxhighlight lang="perl" enclose="div" highlight="7,9-11">

loadMacros(
"PG.pl",
"PGbasicmacros.pl",
"PGchoicemacros.pl",
"PGanswermacros.pl",
"PGauxiliaryFunctions.pl"

);

TEXT(beginproblem());

$showPartialCorrectAnswers = 1;

</syntaxhighlight>

Malcolm 17:34, 25 June 2011 (UTC)