0

Any package that I could be missing, for MDX color syntax highlighting, in Sublime Text 4, which works correctly?

Tried the following but both have broken coloring, as in imports after 1st one showing as plain text, same with exported constants, etc.

Issue illustration (this is with MDX Syntax Highlighting): enter image description here

Package control offers nothing else, at least under MDX keyword.

vldmrrdjcc
  • 2,082
  • 5
  • 22
  • 41
Syden
  • 8,425
  • 5
  • 26
  • 45

1 Answers1

0

You need to change your color scheme to something that covers more scopes. For example, here is your code with Mariana, the default color scheme for new installations of Sublime Text 4:

MDX with Mariana

Here it is using the Neon Color Scheme (full disclosure: I am the author):

MDX with Neon Color Scheme

And here it is with Monokai Pro:

MDX with Monokai Pro

You are most likely using an old color scheme from Sublime Text 3.

MattDMo
  • 100,794
  • 21
  • 241
  • 231
  • Thanks. Actually I'm using Monokai Pro, just tried with Mariana to double check and the colors are off in the exact same places as with Monokai. Will try re-installing Sublime & packages from scratch, which is a pain, but to discard any chance other packages could be conflicting. Btw, I took that screenshot from here, so guess I'm not alone https://github.com/jonsuh/mdx-sublime/issues/3 – Syden Dec 09 '22 at 18:37
  • @Syden I use a slightly modified Markdown syntax, so I wonder if that has something to do with it. – MattDMo Dec 10 '22 at 17:06