codu icon indicating copy to clipboard operation
codu copied to clipboard

Editor: Support for syntax highlighting in code block

Open xiaoniuniu89 opened this issue 1 year ago • 1 comments

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

  1. open editor at /alpha/create/new
  2. add a code block

Additional info

https://tiptap.dev/examples/syntax-highlighting https://tiptap.dev/api/nodes/code-block-lowlight

xiaoniuniu89 avatar Oct 08 '23 19:10 xiaoniuniu89

hey i have implemented the required code . I am opening a PR .

bhubneshmaharana avatar Oct 16 '23 16:10 bhubneshmaharana