Ember is a JavaScript-based MVC framework and its tag, ember.js, probably should use default to using JavaScript syntax highlighting. I'm not sure if this is the best place to ask this; if it's not, please direct me to a more appropriate solution.
-
I didn't even know the tags determined the default syntax highlighting. What happens when there's a mix?– j08691Commented Sep 17, 2012 at 17:20
-
I believe the first tag takes precedence.– jcolebrandCommented Sep 17, 2012 at 17:23
-
People should probably be tagging it javascript too. (And why does Ember get special treatment?)– Ry-Commented Sep 17, 2012 at 17:35
-
@minitech: Indeed they should, but they don't :P– MattCommented Sep 17, 2012 at 17:37
-
@Matt: So add it and/or tell them about it. I don't see how adding syntax highlighting defaults to frameworks helps anything.– Ry-Commented Sep 17, 2012 at 17:38
-
@minitech: Sure we could, but I don't see the harm in adding the highlighting default?– MattCommented Sep 17, 2012 at 17:39
-
... Mmm although the JavaScript tag by itself isn't a perfect solution in this case... Embers' handlebar templating system creates its own issues: stackoverflow.com/questions/12462381/…– MattCommented Sep 17, 2012 at 17:41
-
@j08691: All the rules can be found here: meta.stackexchange.com/questions/72082/…– BoltClock's a Unicorn ModCommented Sep 17, 2012 at 17:48
-
@minitech: Ember hasn't been the only library to get special treatment. See jQuery (and this highly relevant tweet).– BoltClock's a Unicorn ModCommented Sep 17, 2012 at 17:49
-
@BoltClock'saUnicorn: Well, jQuery's a language now. (- Oh, that's what the tweet says.)– Ry-Commented Sep 17, 2012 at 17:51
-
@BoltClock'saUnicorn - thanks for the link.– j08691Commented Sep 17, 2012 at 18:11
-
OK. It had been my understanding that items tagged with JavaScript should be about pure JavaScript not about any specific accompanying tools. I guess I misunderstood that. BTW, is manually specifying the pretty-print/syntax-highlighting no longer supported? I tried to do it here: stackoverflow.com/questions/12193600/…– jacobqCommented Sep 17, 2012 at 18:53
Add a comment
|
1 Answer
I set the highlighting on the ember.js tag to "default".
Your example question looks properly highlighted to me now after I rolled back your edit that added the javascript tag.