Code Monkey home page Code Monkey logo

darcula-code's Introduction

I decided to create this extension in late 2020 because JetBrains Darcula is my favourite color theme out there. However, I could not find any decent implementation of it for VS Code.

I also added IntelliJ Light theme in March 2021.

Supported languages:

  • C# (IntelliJ Light not yet supported)
  • JavaScript
  • TypeScript
  • HTML
  • CSS
  • JSON
  • XML
  • YAML

This color theme natively supports semantic highlighting for all languages mentioned above that support this feature.

In order to implement a support for a given language I first extract all classifiation type defined in the TextMate syntax file. Then I pull all the scopes into the color theme and give them red foreground. Then I try to get every type to display in the editor and find out which color does it get in the JetBrains editor (e.g. Rider, IntelliJ IDEA, etc.). Finally I define the right style for every classification type. I do this until all the classification types are given the right style.

Unfortunately I am not able to simulate all classification scopes because some of them are really obscure. I keep these under "unknown" block in the color theme file so that thay will immediately draw attention if someone is lucky enough to stumble upon them in the future. If that is your case, please file an issue with an instruction how to reproduce it and I will correct the color.

There are some minor differences between my implementation and that by JetBrains. For example, string escape characters are orange in e.g. C# but green in YAML. In my implementation they are always orange. Type parameters are green-like in TypeScript but grey in C#. In my implementation they are always green-like.

I am currently not planning to support any other languages because I do not use them.

Both implemented themes are based on the open-source work made by:

darcula-code's People

Contributors

nejcbw avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.