Note: This extension requires the GIFT Format Extension. We recommend installing the GIFT Format Pack which bundles both this extension and language support for the GIFT Format.
This extension provides a live preview for Moodle's GIFT format. Using this extension, you can write questions in GIFT while viewing the result in a modified version of Moodle's default theme.
Once installed, preview your questions by right-clicking on a GIFT file in Visual Studio Code, then selecting Open Preview to the Side
. Alternatively, press CTRL + K
followed by M
on your keyboard.
See also: GIFT Format Pack, GIFT Format Extension
To install the plugin, we'll first need to install Visual Studio Code. Visual Studio Code is an open-source text editor for Windows, macOS and Linux, with powerful features for working with programming languages.
To install Visual Studio Code:
- Download the installation file from the Visual Studio Code website.
- Install the program.
If you're having trouble with installation, you can consult the Visual Studio Code documentation.
Once Visual Studio Code is installed, you can add the extension through the Extension Marketplace.
For the majority of users, we recommend installing this extension through the GIFT Language Pack, which includes language support for the GIFT format.
To install the GIFT Language Pack:
- Open Visual Studio Code.
- Follow this link to the GIFT Language Pack and click the
Install
button. - When prompted, allow your browser to open Visual Studio Code.
- The extension should now be installing in your editor.
After installing, open a GIFT file or switch VSCode to the GIFT format. Then, right click and select Open Preview to the Side
. Alternatively, press CTRL + K
followed by M
on your keyboard.
The extension features two screens: a snippet reference screen and the preview screen. You can access the snippet reference at any time by going to the button at the bottom right labelled View Snippets...
.
This extension builds on the work of fuhrmanator and is a fork of tht13's html-preview-vscode.
MIT