Code
A code editor with syntax highlighting. The value is saved as a string.
Add this field under fields in .pages.yml:
- name: embed
type: code
options:
format: htmlA saved value in YAML or Markdown front matter might look like:
embed: '<iframe src="https://example.com"></iframe>'To edit a whole file as code instead of a single field, see File formats.