Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Code Theme
AI Tools
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
⭐
Available in Grow Projects
We use CodeMirror for rendering and formatting our code blocks, and CodeMirror provides heaps of themes for you to choose from. The list of themes is available here.
How to Change the Code Theme
To change the code theme, we need to import the theme stylesheet as well as to provide a setting to indicate which theme to use.
- First, find a CDN providing the stylesheet of the theme for maximum performance. cdnjs is an example.
- Import the theme stylesheet by add such a style tag using Custom HEAD Tags:
CSS
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.60.0/theme/ambiance.min.css">- Apply the theme settings also by adding a script to your HEAD tags:
HTML
<script> window.settings.apply({ code: { theme: 'ambiance' } }); </script>Changes will only show in live mode
You can also create your own themes and use them in the same way
You might want to change the styling of the code block tabs and copy button to match the theme you have chosen.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on Oct 22, 2024
Anything missing? Leave us feedback
customisation
Staging Environment
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message