diff --git a/lang/en/help/quiz/formatgift.html b/lang/en/help/quiz/formatgift.html index 9b80e308702..c2096e61d18 100644 --- a/lang/en/help/quiz/formatgift.html +++ b/lang/en/help/quiz/formatgift.html @@ -171,13 +171,35 @@ ~%-50%No one ~%50%Grant ~%50%Grant's wife - ~%-50%Grant's father }
Special Characters ~ = { } :
These symbols ~ = { } control the operation of this filter and cannot be used as normal text within questions.
Since these symbols have a special role in determining the operation of this filter, they are called "control characters."
But sometimes you may want to use one of these characters, for example to show a mathematical formula in a question.
The way to get around this problem is by using "HTML entities."
HTML entities (also called HTML escape sequences) allow you to display characters in HTML without actually using them.
For example, the code = will display as an equal sign (=) in a web browser as HTML.
This allows the characters to be displayed in questions or answers without actually using them.
For example:
Which answer equals 5? {
~= 2 + 2
== 2 + 3
~= 2 + 4 }
The answers in this example will display as = 2 + 2, = 2 + 3 and = 2 + 4. This technique can also be used to display HTML code as code. The following list shows the HTML code needed to represent each control character.
SYMBOL HTML CODE
- ~ ~
- = =
- { {
- } }
- < <
- > >
+ ~%-50%Grant's father }
+
+Special Characters ~ = # { } :
+ These symbols ~ = # { } control the operation of this filter and cannot be used as normal text within questions.
+ Since these symbols have a special role in determining the operation of this filter, they are called "control characters."
+ But sometimes you may want to use one of these characters, for example to show a mathematical formula in a question.
+ The way to get around this problem is "escaping" the control characters.
+ This means simply putting a backslash (\) before a control character so the filter will know that you want to use
+ it as a literal character instead of as a control character.
+ For example:
Which answer equals 5? {
+ ~ \= 2 + 2
+ = \= 2 + 3
+ ~ \= 2 + 4 }
+
+ ::GIFT Control Characters::
+ Which of the following is NOT a control character for the GIFT import format? {
+ ~ \~ # \~ is a control character.
+ ~ \= # \= is a control character.
+ ~ \# # \# is a control character.
+ ~ \{ # \{ is a control character.
+ ~ \} # \} is a control character.
+ = \\ # Correct! \\ (backslash) is not a control character. BUT,
+ it is used to escape the control characters. So, to specify
+ a literal backslash, you must escape it with a backslash
+ (as shown in this example).
+ }
+ When the question is processed, the backslash is removed and is not saved in Moodle.
+Other Options:
Short Answer questions can be made case sensitive by changing "0" to "1" in the following line:
$question->usecase = 0; // Ignore case
GIFT filter and documentation by Paul Tsuchido Shew http://ac.shew.jp. Last updated 21 Feb 2004.
\ No newline at end of file +GIFT filter and documentation by Paul Tsuchido Shew http://ac.shew.jp. Last updated 27 Feb 2004.
\ No newline at end of file