Files
discourse/app/assets/javascripts/admin/components/highlighted-code.js.es6
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
322 B
JavaScript
Raw Normal View History

import Component from "@ember/component";
import { on, observes } from "discourse-common/utils/decorators";
2015-08-20 13:43:12 -04:00
import highlightSyntax from "discourse/lib/highlight-syntax";
export default Component.extend({
2015-08-20 13:43:12 -04:00
@on("didInsertElement")
@observes("code")
_refresh: function() {
2019-07-16 12:45:15 +02:00
highlightSyntax($(this.element));
2015-08-20 13:43:12 -04:00
}
});