Pages CMS
  • GitHub GitHub
  • Discord Discord

Getting started

  • Introduction
  • Quick start

Configuration

  • Overview
  • Media
  • Content
  • Components
  • Settings
  • Collaborators

Fields

  • Block field
  • Boolean field
  • Code field
  • Date field
  • File field
  • Image field
  • Number field
  • Object field
  • Reference field
  • Rich-text field
  • Select field
  • String field
  • Text field
  • UUID field

Guides

  • Installing
    • Install locally
    • Deploy on Vercel
    • Self-host
  • Upgrading to 2.x
  • Migrating collaborators
  • Creating a custom field

Development

  • Authentication
  • Caching
  • Fields
  • Environment variables
  • GitHub App
GitHubGitHub
DiscordDiscord
Getting started
Introduction
Quick start
Configuration
Overview
Media
Content
Components
Settings
Collaborators
Fields
Block field
Boolean field
Code field
Date field
File field
Image field
Number field
Object field
Reference field
Rich-text field
Select field
String field
Text field
UUID field
Guides
Installing
Install locally
Deploy on Vercel
Self-host
Upgrading to 2.x
Migrating collaborators
Creating a custom field
Development
Authentication
Caching
Fields
Environment variables
GitHub App

Code field


View as Markdown Open in ChatGPT Open in Claude Cursor Open in Cursor
Boolean field
Date field

Code editor with syntax highlighting.

Use for snippets, templates, or small config blocks.

Options

Key Description
format Values: yaml, yml, javascript, js, jsx, typescript, ts, tsx, json, html, htm, markdown.

Example

- name: snippet
  type: code
  options:
    format: javascript
Boolean field Date field

On this page

  1. Options
  2. Example