codu
codu copied to clipboard
Editor: Support for syntax highlighting in code block
Context
This is a story of master feature #197.
The editor is in components/editor.
Expected Behavior
As a user, when I want to add a code snippet, there will be an option to select what programming language my snippet is in, so that my code example will look clearer.
Current Behavior
There is no syntax highlighting feature.
Steps to reproduce
Please provide detailed steps for reproducing the issue
- open editor at /alpha/create/new
- add a code block
Additional info
https://tiptap.dev/examples/syntax-highlighting https://tiptap.dev/api/nodes/code-block-lowlight
hey i have implemented the required code . I am opening a PR .