ajaxorg/ace — Issue #652: ace_definition CSS is never applied to themes
Author: gjtorikian
Created: 2012-02-25 19:18:15+00:00
State: open

I thought there was an issue with the Ace's Monokai color scheme, so I started poking around to try and change the colors. Unfortunately, I think I found a bigger problem.

For comparison, here is Monokai as it's represented in Sublime Text/Textmate: http://imgur.com/ZXFyP

And here it is represented in Ace: http://imgur.com/kZ2Gm

You see immediately, for example, that Ace's `function` and `var` styles are different. Actually, the _.tmTheme_ files are precisely the same, so I looked into the page markup to see what the problem is.

The rendered page is marked up like this:

```html
function
...
var
...
for
```

`ace_keyword` has a color of `#F92672`: http://www.colorlist.info/colors/vivid-pink-f92672.html

`ace_definition`, however, is not being applied. It _should_ have a hex of `#66d9ef`: http://www.colorlist.info/colors/pale-faded-cyan-66d9ef.html (in addition to italics)

The `#66d9ef`/italic style **is defined** in _theme/Monokai.tmTheme_ (in three places, no less), so I am not certain why it's not being applied.

@fjakobs Please let me know if the above can be considered an easy fix, as with a little guidance I could probably sort it out myself. My only concern is that it's affecting many other themes, not just Monokai (indeed, no one else is getting `ace_definition` applied at all).

Tangential to all this is that Sublime Text is intelligent enough to recognize that `split` and `join` are standard JS functions. Not sure if we can do that, too.