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

Codeblock Syntax Highlighting #361

Open
Chrisae9 opened this issue Jun 6, 2022 · 1 comment
Open

Codeblock Syntax Highlighting #361

Chrisae9 opened this issue Jun 6, 2022 · 1 comment
Labels
feature t/editor-pm editor prosemirror track

Comments

@Chrisae9
Copy link

Chrisae9 commented Jun 6, 2022

Add syntax highlighting to code blocks, similar to how the GitHub Markdown renders.

Current Behaviour

if num > 1:
    # check for factors
    for i in range(2, num):
        if (num % i) == 0:
            flag = True
            break

Expected Behaviour

if num > 1:
    # check for factors
    for i in range(2, num):
        if (num % i) == 0:
            flag = True
            break
@kepta kepta added feature t/editor-pm editor prosemirror track labels Sep 15, 2023
@dsmanohar
Copy link

dsmanohar commented Dec 29, 2023

Hello, i think we can use highlight.js for this and allowing a dropdown to select a language for Code block would be good

i am new to open source i would like to contribute to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature t/editor-pm editor prosemirror track
Projects
None yet
Development

No branches or pull requests

3 participants