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

Different colors per language

Open simurai opened this issue 9 years ago • 2 comments

Carried over from https://github.com/simurai/duotone-dark-sea-syntax/issues/1

I had an idea: these themes are beautiful, and it would be great to be able to set a theme per language (customisable). Do you see this as something on your roadmap?

Could be neat. A problem is that the background color has to be the same so that it matches the tabs (in certain UI themes), but the syntax highlighting could be different for each language.

Maybe something like blue-ish background and then html = red, css = blue, js = yellow.

simurai avatar Jan 17 '16 00:01 simurai

Something like this:

screen shot 2016-01-31 at 6 43 26 pm

Also neat if languages get mixed in the same file:

screen shot 2016-01-31 at 6 40 44 pm

simurai avatar Jan 31 '16 09:01 simurai

This could be achieved with LESS default variables and variable interpolation. The downside is each language style would need to import the whole syntax-variables.less, making the resulting style sheet much larger. (and likely slower)

BadBastion avatar May 13 '17 22:05 BadBastion