Domanda

I was reading the rust book, however the code was not highlighted. (It is using highlight js to highlight the code)

OS: MacOS Big Sur public beta Browser: Chrome(Maybe Chromium) (Not on Safari)

Screenshot: image (println! keyword is computed to orange in lower right)

As you can see, the code highlighting isn't working. However, the computed color is different from black.

This is really stressing me out. How can I fix this problem?

È stato utile?

Soluzione

This issue had also been stressing me out for months and with every Chrome or macOS update I was hoping it would get fixed… Today I stumbled upon this comment which finally helped me solve the problem!

Turns out I just had to reinstall Source Code Pro (in my case by running brew reinstall font-source-code-pro).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a apple.stackexchange
scroll top