duotone-syntax icon indicating copy to clipboard operation
duotone-syntax copied to clipboard

Javascript Support

Open NelsonBrandao opened this issue 8 years ago • 4 comments

Hi,

I love this theme, but i think the JS language support is a bit lacking. For objects the colors are all the same.

JS Example

We could do something similar to SCSS with different color for the keys, and maybe differentiate between bool, integer and string

CSS Example

What do you guys think?

NelsonBrandao avatar Apr 14 '16 11:04 NelsonBrandao

Yeah, that's a good idea. Left a bit toned down and then right stronger.

simurai avatar Apr 15 '16 08:04 simurai

Hmm.. @NelsonBrandao I just tried your example, and it seems already close to how SCSS does it:

screen shot 2016-04-17 at 5 38 15 pm

Do you use a different JS language package?

simurai avatar Apr 17 '16 08:04 simurai

Hmm, yup you are right. This only happens with Babel ES6 Javascript

NelsonBrandao avatar Apr 18 '16 09:04 NelsonBrandao

What's language package you use? Maybe we can add better support in this theme. Or maybe that package needs to be changed.

simurai avatar Apr 24 '16 02:04 simurai