Skip to content

Code Syntax Highlighting only Works for JS language #396

@Nix41

Description

@Nix41

Describe the bug
Code Blocks are only show syntax highlighting when the language is javascript/js

To Reproduce
Steps to reproduce the behavior:

  1. Go to Documentation Example Editor
  2. Input:
def factorial(n):
    """Calculate the factorial of a number using recursion."""
    if n == 0:
        return 1
    else:
        return n * factorial(n - 1)

Expected behavior
Syntax highlighting for python code

Screenshots
image
image
image

I tried around 10 languages

Desktop:

  • Ubuntu 22.04
  • Browser Chrome
  • Version 127.0.6533.72

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