Skip to content

Delphi highlighter does nothing #4014

Open
@vincentparrett

Description

@vincentparrett

Describe the issue

The delphi highlighter appears to be broken, no highlighting occurs.

Which language seems to have the issue?

delphi - not using autohighlight.

Are you using highlight or highlightAuto?

don't know - using https://highlightjs.org/demo to test but I first saw the issue in discourse.

Sample Code to Reproduce

procedure test(const s : string);
var
   x : integer;
begin
   x := 0;
   exit;
end;

Expected behavior

Keywords (procedure, var, begin, end, exit) should be bold and coloured.
Built in types string and integer should be bold and coloured (different to keywords).

Activity

changed the title [-](language name) Short description of issue...[/-] [+]Delphi highlighter does nothing[/+] on Mar 13, 2024
joshgoebel

joshgoebel commented on Mar 14, 2024

@joshgoebel
Member

Maybe @allejo can take a look, this definitely works in the developer tool, so the problem isn't with Highlight.js I don't think.

TikoTako

TikoTako commented on May 15, 2024

@TikoTako

Hello, i just added highlight.js to blogger and i have the same issue.
I thought i did something wrong so i checked the demo page and here: https://highlightjs.org/examples but there's no highlighting there either.

joshgoebel

joshgoebel commented on May 17, 2024

@joshgoebel
Member

What browser are you using?

TikoTako

TikoTako commented on May 18, 2024

@TikoTako

What browser are you using?

Firefox (pc/phone) and edge (other pc).
I tried the code tag (with and without the class language) with c, c#, c++, java, html and delphi.
Testing highlight js

TikoTako

TikoTako commented on May 18, 2024

@TikoTako

Ah my bad, delphi isnt in highlight.js/highlight.min.js i had to import delphi.min.js
But still the demo page is broken for delphi and the examples page dont work at first (for delphi) but it work if i reload the page 🤨

joshgoebel

joshgoebel commented on May 19, 2024

@joshgoebel
Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @joshgoebel@vincentparrett@TikoTako

        Issue actions

          Delphi highlighter does nothing · Issue #4014 · highlightjs/highlight.js