cs-icon.svg

Apply Language Formatting to Code Snippets in JSON RTE

You can now format your code snippets according to a specific programming language. Contentstack provides built-in syntax formatting for more than 60 programming languages, e.g., JavaScript, HTML, Python, etc.

To apply a programming language format to any code snippet, click on a code block present in your JSON Rich Text Editor and select a language from the dropdown.

Note: To go to the next line within the code snippet, use Enter, and to exit the code snippet, press Shift+Enter.

Code_Blocks_GIF.gif

You can also click on the Copy icon to copy and paste the code snippet into another field. If you want to delete the code block, click on the Trash icon that shows up on hovering.

Was this article helpful?
^