What is the default text format for GIFT?

What is the default text format for GIFT?

- Stewart Hutton の投稿
返信数: 3
As the subject says - if a text format isn't specified in a GIFT file for import, how will the question be treated? plain text? moodle auto-format? something else?

I know - I could try it to find out - but I have to write some notes this evening without access to the system so I'm hoping I can get a quick answer here!

Thanks
Stewart Hutton への返信

Re: What is the default text format for GIFT?

- Mary Cooch の投稿
画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Testers 画像 Translators
Mary Cooch への返信

Re: What is the default text format for GIFT?

- Stewart Hutton の投稿
Thanks Mary - thats doubly useful.

I can use it to test out things when writing my notes - and then the question authors can use it to test their files.

I didn't know it existed.
Stewart Hutton への返信

Re: What is the default text format for GIFT?

- Tim Hunt の投稿
画像 Core developers 画像 Documentation writers 画像 Particularly helpful Moodlers 画像 Peer reviewers 画像 Plugin developers
Thank you for asking this question, I just learned something!

I did not know the answer, so I went to look at the code (question/format/gift/format.php), and the answer is much more interesting than I expected.

By default, it is Moodle auto-format, however, you can write something like

[html]<p>Here is some HTML question text</p>

That is, with the format you want in square brackets. The format names recognised are moodle, html, plain and markdown.