You can include various types of files in your texts. Depending on the type of files, they are shown in different ways. You must attach them to the assignment. To include an attached pdf document with label readme, you can write:
```file label: readme ```
This is built up as follows:
- The first line consists of three backquotes, followed by the word file. This indicates that you want to view a file
- Next there is the label of a file that is attached to the assignment.
- This can be followed by some options (see below).
- And the block is ended by three backquotes.
Note that you cannot use this construction to view files that are stored somewhere else on the web. In this case, use an iframe to show external content.
The following options exist:
- The default options: size, shape, border, and position.
The following file types are supported:
- pdf files. Many types of documents you can transfer to pdf and can then be shown this way.
- image files, like svg, png, and jpg. You can normally better use the image include for this.
- Markdown files, ending with .md. This can be used to put large pieces of text in a file rather than directly in the editor.
- text files, like .txt and .log files. (Basically anything else is shown as text.)
More will be added in the future. If the file type is not supported an error will be shown.