Code Block within List #2247
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 change the language of a code block by clicking inside it and using the code block button in the toolbar details. This feature is intentionally supported and works reliably within lists. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
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…