How to edit code blocks
Canopy's intuitive interface makes editing code blocks a breeze
Here's how to get started
Locate the Code Block
Identify the code block you want to modify on your page. Canopy uses visual indicators like highlighted areas or bounding boxes to show editable elements.
Alternatively, you can also employ one of the following methods to locate your editable items.
- Click the Toggle Guides button to visually highlight all editable regions on the page.
- Utilize the Component Tree to navigate and identify the specific text element within the page structure.
Select the Code Block
Simply click on the code block you want to edit.
Edit in the Sidebar
Once selected, a sidebar will appear on the right side of the interface. This sidebar will display the editing options for the chosen code block element.
Language: Select the appropriate language that corresponds to your code snippet.
Code: Paste or type your code snippet here.
Make Your Changes
Simply modify the content directly within the sidebar. The changes will be reflected in real-time on the actual page, allowing you to preview your edits as you go. When you're happy with the changes click on Update to save the changes.