Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor: Support for syntax highlighting in code block #498

Open
xiaoniuniu89 opened this issue Oct 8, 2023 · 1 comment
Open

Editor: Support for syntax highlighting in code block #498

xiaoniuniu89 opened this issue Oct 8, 2023 · 1 comment

Comments

@xiaoniuniu89
Copy link
Contributor

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

@bhubneshmaharana
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants