The Source Editor is an in-browser code editor, used to make edits within CloudCannon on any text-based file. It is available to the owner and developers of the site.
Configuring the Source Editor#
The Source Editor is used to edit the raw content of text-based files. Client Sharing users and editor-level team members do not have access to it.
Syntax highlighting is automatically detected from the extension of the file you are opening.
To change the appearance and behavior of the Source Editor, use the
source_editor option in your global configuration:
The Source Editor has the following options available:
Defines how many spaces lines are auto indented by, and how many spaces tabs are shown as. Optional, defaults to
Changes the colors scheme for syntax highlighting in the editor. Optional, defaults to
monokai. Must be one of:
Toggles displaying line numbers and code folding controls in the editor. Optional, defaults to