- Description:
This key defines the appearance and behavior of the Source Editor.
For more information, please read our documentation on the Source Editor.
- Type:
Object- Properties:
This key toggles the gutter on the left of the editing interface, displaying line numbers and code folding controls.
Defaults to:
trueShow examplesHide examples
In this example, CloudCannon will show the gutter with line numbers in the Source Editor.
Copied to clipboardsource_editor: show_gutter: true{ "source_editor": { "show_gutter": true } }This key toggles whether CloudCannon will enable soft wrapping of code in the Source Editor.
Setting this key to
truewill enable soft wrapping of code, allowing long lines to wrap to the next line without horizontal scrolling.Defaults to:
falseShow examplesHide examples
In this example, CloudCannon will enable soft wrapping of code in the Source Editor.
Copied to clipboardsource_editor: soft_wrap: true{ "source_editor": { "soft_wrap": true } }This key defines the auto-indentation of each line and how many spaces a tab indentation counts as.
Defaults to:
2Show examplesHide examples
In this example, we have configured the Source Editor to use 2 spaces for tab indentation.
Copied to clipboardsource_editor: tab_size: 2{ "source_editor": { "tab_size": 2 } }This key defines the color theme for syntax highlighting.
Defaults to:
basic_darkAllowed values:
atomonebasic_darkbasic_lightdarculadraculaduotone_darkduotone_lighteclipsegithub_darkgithub_lightand 15 more.Show examplesHide examples
In this example, we have configured the Source Editor to use the
darktheme for syntax highlighting.Copied to clipboardsource_editor: theme: dark{ "source_editor": { "theme": "dark" } }- Examples:
In this example, we have configured the Source Editor with custom theme, tab size, and gutter settings.
Copied to clipboardsource_editor: theme: basic_dark tab_size: 2 show_gutter: true{ "source_editor": { "theme": "basic_dark", "tab_size": 2, "show_gutter": true } }