Skip to content

Code Block within List #2247

Answered by dosubot bot
SpaceRaceMouse asked this question in Q&A / Support
Jun 10, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can insert a code block within an enumerated (numbered) list in TriliumNext Notes without pulling the list itself into the code block by following these steps: create your list, press Enter to start a new list item, then press Backspace to remove the bullet or number. With the cursor now outside the list but still indented, insert your code block (using the formatting toolbar or by typing ``` as in Markdown). This keeps the code block separate from the list formatting. The same method works for bullet and to-do lists as well. More details and visuals are available in the documentation here.

TriliumNext supports syntax highlighting for code blocks using Highlight.js, and you can chang…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SpaceRaceMouse
Comment options

Answer selected by SpaceRaceMouse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant