Sublime Forum

YAML syntax highlight does not work sublime-text-4

#1

I’m new to sublime text, I just installed sublime-text-4 on manjaro linux. When I open a YAML file, then it does not do syntax highlight. Even if I do “Set Syntax: YAML” manually, it just does not work. Here is an example:

Very strange, because syntax coloring works for other files: shell script, go source file, Typescript etc. But YAML does not. What am I missing?

0 Likes

#2

It seems that it only doesn’t work with “compose.yaml” and “compose.yml” files. If I create a “test.yaml” file, then it is fine:

0 Likes

#3

Looks like has been fixed in upstream. You would have to fix it by yourself if you are using a non-official color scheme. Or, more info has to be provided, ST version, color scheme etc…

0 Likes

#4

I’m using AUR (Arch linux user packages) on Manjaro 23.1.3 (vulcan). When was it fixed in the upstream?

Updating sublime-text-4 with yay does nothing. I’m not sure what to do,
I don’t see a package maintainer here: https://aur.archlinux.org/packages/sublime-text-4

0 Likes

#5

Adding customized color scheme fixed it, thank you!

0 Likes