Skip to content

Editor: Support for syntax highlighting in code block #498

@xiaoniuniu89

Description

@xiaoniuniu89

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions