feat: example for code block#1099
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
@JaeungJayJang is attempting to deploy a commit to the TypeCell Team on Vercel. A member of the Team first needs to authorize it. |
|
It'd be awesome to be able to choose from a drop down list of programming languages too. This looks awesome. |
|
@trancethehuman Thanks for the suggestion! Just added language selection using NativeSelect from Mantine/core. |
wow that's a lot of options 🔥 Wondering if you can add bash and text (yep, just regular unhighlighted text) options. A search box would probably do well here as well. |
|
@trancethehuman I pulled entire language supports from CodeMirror XD You can try something like this for the serach box option: |
|
this is super good. @YousefED is this good for codeblock? |
|
@JaeungJayJang Great work! Could you add a |
|
@lamtuanamc Thanks for the suggestion. I will look into it.
after further testing, the issue is not related to styles.css. turned out that the issue I faced occur when I set BlockNoteView's |
Hello, This PR adds an example of creating custom code block.
The example is based on Custom Alert Block from the official site and also from blocknote-code by defensestation.
I am new to BlockNote and it was hard to find example on creating custom code block. I saw many people faced the same issue and I hope this can help many people. :)
Stackblitz example: https://stackblitz.com/edit/vitejs-vite-fnzdjj?file=index.html