CameronBieganek / julia-color-themes

VS Code color themes for the Julia language.
Other
9 stars 0 forks source link

Fail to render #1

Closed KennyNg-19 closed 3 years ago

KennyNg-19 commented 3 years ago

I make a workspace for Julia and open the color theme extension. But it seems doesn't work. I guess maybe there is a conflict with other extensions?

Here is the screen shot image

CameronBieganek commented 3 years ago

Hi @KennyNg-19, thanks for using Julia Color Themes!

Is that a Jupyter Notebook that you have shown in your screen capture? There is an upstream issue with syntax highlighting in Jupyter Notebooks. There are some workarounds in this github issue:

https://github.com/julia-vscode/julia-vscode/issues/1620

Also see this Discourse discussion:

https://discourse.julialang.org/t/no-syntax-highlighting-in-the-new-vscode-jupyter-notebook-extension/50602

I'm guessing if you switch to a different color theme, you still won't have any highlighting in the notebook. You can change color themes by opening the command palette (Cmd + Shift + P on MacOS) and running Preferences: Color Theme.

The Julia Color Themes extension is a very simple extension that just designates the colors for different "tokens" in your source file. It relies on VS Code and the Julia VS Code Extension to actually parse each Julia file into different tokens (using a TextMate Grammar). So the issue here is that the Julia code in Jupyter notebooks is not being parsed into tokens in the first place.

CameronBieganek commented 3 years ago

This is an upstream issue, https://github.com/julia-vscode/julia-vscode/issues/1620, so I'm going to close this.