Skip to content

Prism highlighter only supports a subset of languages #6

@javier-godoy

Description

@javier-godoy

Describe the bug

It seems that the prism highlighter only supports languages defined in refractor/lib/commons.js.

Indeed, refractor/lib/all.js is absent from the dev sources

Image

Expected behavior

All supported languages should be supported.

Minimal reproducible example

  1. Go to https://addonsv24.flowingcode.com/syntax-highlighter/prism

  2. Select a language not listed in common.js (e.g., brainfuck).

  3. Write a valid Brainfuck program such as

,>++++[<-------->-]<.
  1. Observe that highlighting fails or is missing.

Image

For comparison, here's the same code highlighted on Prism test page

Image

Add-on Version

1.0.0

Vaadin Version

24.7.1

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions