/*global hljs:true */

/**
  Helper object for syntax highlighting. Uses highlight.js which is loaded on demand.

  @class SyntaxHighlighting
  @namespace Discourse
  @module Discourse
**/
Discourse.SyntaxHighlighting = {

  /**
    Apply syntax highlighting to a jQuery element

    @method apply
    @param {jQuery.selector} $elem The element we want to apply our highlighting to
  **/
  apply: function($elem) {
    $('pre code', $elem).each(function(i, e) {
      return $LAB.script("/javascripts/highlight.pack.js").wait(function() {
        return hljs.highlightBlock(e);
      });
    });
  }
};

/*global hljs:true */

/**
  Helper object for syntax highlighting. Uses highlight.js which is loaded on demand.

  @class SyntaxHighlighting
  @namespace Discourse
  @module Discourse
**/
Discourse.SyntaxHighlighting = {

  /**
    Apply syntax highlighting to a jQuery element

    @method apply
    @param {jQuery.selector} $elem The element we want to apply our highlighting to
  **/
  apply: function($elem) {
    $('pre code[class]', $elem).each(function(i, e) {
      return $LAB.script("/javascripts/highlight.pack.js").wait(function() {
        return hljs.highlightBlock(e);
      });
    });
  }
};

Revert "BUGFIX: highlight standard code blocks"
Revert "BUGFIX: highlight standard code blocks"

This reverts commit d5b1b64bb838baca3a4c9126a15cb8631ed8c791.
