Skip to content

Commit 7fcaa31

Browse files
committed
Update readmes
1 parent 1385ca1 commit 7fcaa31

File tree

4 files changed

+36
-53
lines changed

4 files changed

+36
-53
lines changed

README.md

Lines changed: 18 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,31 @@
1-
# Sublime Text Monokai C# theme for Visual Studio Code
2-
[![License: Unlicense](https://img.shields.io/badge/license-Unlicense-blue.svg)](http://unlicense.org/)
3-
4-
This theme is exactly the same Monokai's theme of Sublime Text but for Visual Studio Code instead. Unlike default VSCode's Monokai, this is an actual, perfect and identical copy of the loved by all Sublime Text's theme. It's name is **Sublime Monokai**.
1+
# Identical Sublime Text Monokai theme for Visual Studio Code
52

6-
- [Visual Studio Marketplace: Theme&Colorizer Extension](https://marketplace.visualstudio.com/items?itemName=maximetinu.identical-sublime-monokai-csharp-theme-colorizer)
7-
## Screenshots
8-
![Sublime monokai theme demo](/screenshots/sublime-monokai-demo.png?raw=true "Sublime monokai theme demo")
9-
### Comparison between this theme and Sublime Text's
10-
![This theme vs Sublime Text's](/screenshots/sublime-monokai-vs-sublime-text.png?raw=true "This theme vs Sublime Text's")
11-
### Comparison between default VSCode Monokai theme and Sublime Text's
12-
Observe the differences. Is subtle but it's there.
13-
![Default VSCode Monokai vs Sublime Text's](/screenshots/default-monokai-vs-sublime-text.png?raw=true "Default VSCode Monokai vs Sublime Text's")
14-
## Instructions
15-
Option 1, search for the extension in Visual Studio Code Marketplace:
16-
1. At the Welcome tab *(Help>Welcome)* click "Tools and languages" and search by my "identical sublime monokai theme". Install it.
17-
2. Ready to code!
3+
[![License: Unlicense](https://img.shields.io/badge/license-Unlicense-blue.svg)](http://unlicense.org/)
184

19-
Option 2, install it as a local VSCode extension:
20-
1. Copy the folders in this repository *csharp-sublime-colorizer* and *theme-sublime-monokai* into your folder *<User Home>/.vscode/extensions/*.
21-
2. Ready to code!
22-
23-
Make sure that you choose the **Sublime Monokai** color theme at the Welcome tab *(Help>Welcome)* and check bottom right if **C# Sublime Colorizer** is working instead of the default C#, as can be seen in the next screenshot:
24-
![Sublime colorizer working](/screenshots/sublime-colorizer-working.png?raw=true "Sublime colorizer working")
5+
For C#, this theme is exactly the same Monokai's theme of Sublime Text but for Visual Studio Code instead. Unlike default C# VSCode's Monokai, this is an actual, perfect and identical copy of the loved by all Sublime Text's theme. It's name is **Sublime Monokai**.
256

26-
**Why override C# parser/colorizer if it's a theme? Keep reading.**
7+
While I put special focus on making it identical specifically for C#, it is also close to identical in the case of C, C++ and Python. For other languages like Javascript, Ruby, Java, etc, it's not guaranteed to be 100% identical (or maybe yes, I didn't tested it), but it'll work anyway as just another Monokai theme :)
278

28-
---
9+
## Language's identicality support
2910

30-
## Why default VSCode's Monokai is so different from Sublime Text's?
31-
There are two reasons.
11+
*(yes, that's a made-up word)*
12+
13+
- **First class support *(100% identicality guaranteed)*:** C#.
14+
- **Second class support *(identical or close to identical, but not heavily tested)*:** C, C++, Python
15+
- **Third class support *(it will work and should be similar, but wasn't developed or tested. Even if it's identical it wasn't on purpose)*:** Javascript, Ruby, Java, all others.
3216

33-
First of all, VSCode's theme assign the same style to certains colorizer rules which differ each other in Sublime Text. It's possible to solve it by modifying the default VSCode Monokai's theme.
17+
## Screenshots (for C#)
3418

35-
Secondly, no matter how much we modify default VSCode's Monokai, it's impossible to get the same color scheme as Sublime Text due to limitations of the C# colorizer that uses VSCode. On the one hand, VSCode groups in the same selector two things which are different styled in Sublime Text, and it is not possible to assign different styles to things with the same selector. On the other hand, the VSCode C# colorizer is more limited due to it is only possible to assign one single selector to each code token, unlike Sublime Text's colorizer, which allows the assignment of multiple selectors to increase flexibility when it comes to styling. This is because VSCode uses a *.tmLanguage* file as colorizer while Sublime Text uses *.sublime-syntax* files to make the parsing. It is possible to convert from *.tmLanguage* to *.sublime-syntax*, but not the opposite, since *.sublime-syntax* is a superset of *.tmLanguage* functionality, so it is not possible to convert in such a way.
19+
![Sublime monokai theme demo](https://github.com/Maximetinu/Sublime-Text-Monokai-theme-for-Visual-Studio-Code/raw/master/screenshots/sublime-monokai-demo.png?raw=true "Sublime monokai theme demo")
3620

37-
In the next screenshot can be seen the gap between the two colorizers:
38-
![tmlanguage vs sublime syntax](/screenshots/tmlanguage-vs-sublimesyntax.png?raw=true "tmlanguage vs sublime syntax")
39-
### So, what's the trick, then?
40-
I've modified the VSCode C# colorizer (the *.tmLanguage* file) to differentiate differents elements. Once that's done, I've modified the default VSCode's Monokai theme to assign the styles as Sublime Text does. That's why it's necessary to modify the official C# parser folder.
21+
### Comparison between this theme and Sublime Text's
4122

42-
**Happy coding!** now with Monokai ;)
23+
![This theme vs Sublime Text's](https://github.com/Maximetinu/Sublime-Text-Monokai-theme-for-Visual-Studio-Code/raw/master/screenshots/sublime-monokai-vs-sublime-text.png?raw=true "This theme vs Sublime Text's")
4324

44-
---
25+
### Comparison between default VSCode Monokai theme and Sublime Text's
4526

46-
**UNLICENSED**
27+
Observe the difference. Is subtle but it's there.
4728

48-
[![License: Unlicense](https://img.shields.io/badge/license-Unlicense-blue.svg)](http://unlicense.org/)
29+
![Default VSCode Monokai vs Sublime Text's](https://github.com/Maximetinu/Sublime-Text-Monokai-theme-for-Visual-Studio-Code/raw/master/screenshots/default-monokai-vs-sublime-text.png?raw=true "Default VSCode Monokai vs Sublime Text's")
4930

50-
- Only tested in Windows 10, but it should also work in MacOS and Linux.
51-
- Only tested with C#, but it should also work for other programming languages. It should be more like Sublime's Monokai working with any language, but it won't be as accurate as with C# since the only colorizer modified is the C# parser.
52-
- Only tested with Visual Studio Code, but it should also work with Visual Studio IDE as long as the *.tmLanguage* file (the colorizer) is modified or replaced and the theme is installed too.
53-
54-
In general, it should also work in any editor which uses the same Text Mate grammar tokens as theme and the *.tmLanguage* as colorizer, as Text Mate editor itself.
31+
**Happy coding!** now with Monokai ;)
-18.6 KB
Binary file not shown.
-127 KB
Binary file not shown.
Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
1-
# Sublime Text Monokai C# theme for Visual Studio Code
1+
# Identical Sublime Text Monokai theme for Visual Studio Code
2+
23
[![License: Unlicense](https://img.shields.io/badge/license-Unlicense-blue.svg)](http://unlicense.org/)
34

4-
This theme is exactly the same Monokai's theme of Sublime Text but for Visual Studio Code instead. Unlike default VSCode's Monokai, this is an actual, perfect and identical copy of the loved by all Sublime Text's theme. It's name is **Sublime Monokai**.
5+
For C#, this theme is exactly the same Monokai's theme of Sublime Text but for Visual Studio Code instead. Unlike default C# VSCode's Monokai, this is an actual, perfect and identical copy of the loved by all Sublime Text's theme. It's name is **Sublime Monokai**.
6+
7+
While I put special focus on making it identical specifically for C#, it is also close to identical in the case of C, C++ and Python. For other languages like Javascript, Ruby, Java, etc, it's not guaranteed to be 100% identical (or maybe yes, I didn't tested it), but it'll work anyway as just another Monokai theme :)
58

6-
---
9+
## Language's identicality support
710

8-
**Important!** Make sure that you choose the **Sublime Monokai** color theme at the Welcome tab *(Help>Welcome)* and check bottom right if **C# Sublime Colorizer** is working instead of the default C#, as can be seen in the next screenshot:
11+
*(yes, that's a made-up word)*
12+
13+
- **First class support *(100% identicality guaranteed)*:** C#.
14+
- **Second class support *(identical or close to identical, but not heavily tested)*:** C, C++, Python
15+
- **Third class support *(it will work and should be similar, but wasn't developed or tested. Even if it's identical it wasn't on purpose)*:** Javascript, Ruby, Java, all others.
916

10-
![Sublime colorizer working](https://github.com/Maximetinu/Sublime-Text-Monokai-theme-for-Visual-Studio-Code/raw/master/screenshots/sublime-colorizer-working.png?raw=true "Sublime colorizer working")
17+
## Screenshots (for C#)
1118

12-
---
19+
![Sublime monokai theme demo](https://github.com/Maximetinu/Sublime-Text-Monokai-theme-for-Visual-Studio-Code/raw/master/screenshots/sublime-monokai-demo.png?raw=true "Sublime monokai theme demo")
1320

14-
## Screenshots
15-
![Sublime monokai theme demo](https://github.com/Maximetinu/Sublime-Text-Monokai-theme-for-Visual-Studio-Code/raw/master/screenshots/sublime-monokai-demo.png?raw=true "Sublime monokai theme demo")
1621
### Comparison between this theme and Sublime Text's
17-
![This theme vs Sublime Text's](https://github.com/Maximetinu/Sublime-Text-Monokai-theme-for-Visual-Studio-Code/raw/master/screenshots/sublime-monokai-vs-sublime-text.png?raw=true "This theme vs Sublime Text's")
22+
23+
![This theme vs Sublime Text's](https://github.com/Maximetinu/Sublime-Text-Monokai-theme-for-Visual-Studio-Code/raw/master/screenshots/sublime-monokai-vs-sublime-text.png?raw=true "This theme vs Sublime Text's")
24+
1825
### Comparison between default VSCode Monokai theme and Sublime Text's
19-
Observe the differences. Is subtle but it's there.
2026

21-
![Default VSCode Monokai vs Sublime Text's](https://github.com/Maximetinu/Sublime-Text-Monokai-theme-for-Visual-Studio-Code/raw/master/screenshots/default-monokai-vs-sublime-text.png?raw=true "Default VSCode Monokai vs Sublime Text's")
27+
Observe the difference. Is subtle but it's there.
2228

23-
**Why override C# parser/colorizer if it's a theme? Keep reading [the repo](https://github.com/Maximetinu/Sublime-Text-Monokai-theme-for-Visual-Studio-Code)**
29+
![Default VSCode Monokai vs Sublime Text's](https://github.com/Maximetinu/Sublime-Text-Monokai-theme-for-Visual-Studio-Code/raw/master/screenshots/default-monokai-vs-sublime-text.png?raw=true "Default VSCode Monokai vs Sublime Text's")
2430

2531
**Happy coding!** now with Monokai ;)

0 commit comments

Comments
 (0)