var LanguageMap = {
  "crystal": "ruby",
  "gcc": "c++"
};

export default Ember.Component.extend({
  highlightLanguage: function() {
    return LanguageMap[this.get('language')] || this.get('language');
  }.property('language'),
  watchForChanges: function() {
    this.rerender();
  }.observes('code'),
  didInsertElement: function() {
    var code = this.$('pre > code')[0];
    code.innerHTML = window.ansi_up.ansi_to_html(code.innerHTML, {use_classes: true});
    window.hljs.highlightBlock(this.$('pre > code')[0]);
    window.hljs.lineNumbersBlock(this.$('pre > code')[0]);
  }
});

var LanguageMap = {
  "crystal": "ruby",
  "gcc": "c++"
};

export default Ember.Component.extend({
  highlightLanguage: function() {
    return LanguageMap[this.get('language')] || this.get('language');
  }.property('language'),
  watchForChanges: function() {
    this.rerender();
  }.observes('code'),
  didInsertElement: function() {
    var code = this.$('pre > code')[0];
    code.innerHTML = window.ansi_up.ansi_to_html(code.innerHTML, {use_classes: true});
    window.hljs.highlightBlock(this.$('pre > code')[0]);
    // window.hljs.lineNumbersBlock(this.$('pre > code')[0]);
  }
});

Revert "Enable line numbers on result view"
Revert "Enable line numbers on result view"

This reverts commit cba57c3ab39796c9ac007d4e26f9c4ad94aa7a3f.

Still broken on FF
