> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.jotterpad.app/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Add YAML

## What is YAML?

YAML is a data-oriented structure that allows users to create custom file properties using key-value pairs. YAML can only be added in the following extensions:

* .txt
* .md
* .markdown

## YAML Interface


![YAML editor in web app](https://storage.crisp.chat/users/helpdesk/website/a720bae09aee9000/jotterpad-web-yaml-editor_rz4zun.png)

In order to create a file property, you will first need to enter and select the following information:

### Key

A unique identifier for a value. 

### Type

The type of value to be set for a particular key. The following are the types of values that are supported:

* **String**: Allows you to enter any character in the _Value_ field.
* **Number**: Allows you to only enter numerical values in the _Value_ field.
* **Array**: Allows you to enter an ordered list of values.
* **Object**: Allows you to enter a list of values with unique identifiers. 
* **Boolean**: Allows you to only select 'True' or 'False' in the _Value_ field.
* **Null**: Allows you to only select 'Null' in the _Value_ field.

### Value

Values such as _letters_, _numbers_, _'Yes/No'_ and _'Null' _can be input.

| Please refer to the [YAML documentation](https://yaml.org/) for more information.

---
## Add YAML

### Android

1. In the editor, tap on `⋮`  > `YAML Editor`.
2. Input the YAML code in the code editor.
3. Tap on the `Done` button to save the changes.

### iOS

1. In the editor, tap on `⋯` > `YAML Editor`.
2. Input the YAML code in the code editor.
3. Tap on the `Done` button to save the changes.

| This feature is available in v14.0.0.

### Mac

1. In the menu, click on `File` > `YAML Editor`.
2. Input the YAML code in the code editor.
3. Tap on the `Done` button to save the changes.

### Web 

![YAML Editor button in the editor screen](https://storage.crisp.chat/users/helpdesk/website/a720bae09aee9000/jotterpad-web-yaml-editor-inte_v21slu.png)


![An example of how the YAML looks like in a Markdown or Text document in code view](https://storage.crisp.chat/users/helpdesk/website/a720bae09aee9000/jotterpad-web-yaml-editor-code_n87329.png)

1. In the editor, click on the `YAML Editor` button, which is located next to the "Publish" button.
2. Input the YAML code in the code editor.
3. Click on the `OK` button to save the changes.

To view the YAML code, click on the `</>` icon in the Editor screen.