Skip to content

(Bug report) Syntax Highlight for Certain Languages Don't Work Under Their Own Labels #5384

@Lolabird

Description

@Lolabird

Description

I was thinking about adding this issue to my other bug report, but figured it was different enough to warrant its own issue.

There are also a few languages like PHP that appear to work under the "Autodetect" function, but not under their respective labels. So far I've noticed this for

  • HTTP
  • PHP
  • Sass
  • TypeScript-JSX

Just in case you want to do your own tests, I've already tested this on the above languages, plus

  • the JavaScript family of languages
  • Python and Django
  • JSON
  • CSS family of languages
  • SQL family of languages
  • Shell and Powershell
  • YAML
  • XML

Everything I tested except the four mentioned earlier seem to render syntax highlighting properly in text note code blocks. I haven't tested everything, though, so I'm not sure if any other language is having this issue.

TriliumNext Version

0.90.12

What operating system are you using?

Other Linux

What is your setup?

Local + server sync

Operating System Version

Debian 12 Bookworm with Dockerized server installation

Error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions