Closed sharpchen closed 1 year ago
Hi, @UPIMMUNITY
Sorry, I didn't write scope coloring rules specifically for .ipynb
files, and I can't write scope coloring rules to support .dib
files. They are not programming languages. I can't view the scope values of code blocks in .dib
files.
All theme plugins add color to characters based on their scope value. All characters's scope value is given by VSCode. You can check them by pressing Ctrl+Shift+P (Windows) or Cmd+Shift+P (Mac) and selecting Inspect Editor Tokens and Scopes.
I have reviewed your .dib
file using all the themes installed on my VSCode, and none of them have been colored for the code blocks, including the default theme for VSCode.
So you may got the logic wrong. It's not the theme that needs to support .dib
files, but .dib
files need to add the feature of importing code themes for display. So you may need to raise an issue under the Polyglot Notebook plugin.
@fisheva I see, you're right. Nothing is colorized without semantic highlighting.
What is a
.dib
file?.dib
is a format for representing notebook content, just like.ipynb
for python..dib
is for some other languages for exampleC#
,JavaScript
based on .NET Interactive.What extension I am using?
I am using Polyglot Notebook writing
C#
code. This extension supports both.dib
and.ipynb
, but the syntax highlighting is not working properly with.dib
.Screenshot
Working with![image](https://github.com/fisheva/Eva-Theme/assets/77432836/9ae7a5af-21eb-41c1-84ed-3df59a7375e6)
.ipynb
looks fine.Working with![image](https://github.com/fisheva/Eva-Theme/assets/77432836/a9338252-de30-4e6f-b882-cd644d1312d4)
.dib
when semantic highlighting is enabled.Working with![image](https://github.com/fisheva/Eva-Theme/assets/77432836/feddbaf2-25df-4c42-8784-b020f066d691)
.dib
when semantic highlighting is disabled.Code Snippet