Code blocks
Add a code block to a page to include sample code, configurations, code snippets and more
Add a code block
Example of a code block
import * as React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, window.document.getElementById('root'));Code block options
Set syntax…
With line numbers
With caption
Wrap code
Expandable
Code block actions
Copy the code
Representation in Markdown
Last updated
Was this helpful?