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

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

12 lines
343 B
JavaScript
Raw Normal View History

import Component from "@ember/component";
import { on, observes } from "discourse-common/utils/decorators";
import highlightSyntax from "discourse/lib/highlight-syntax";
2015-08-20 13:43:12 -04:00
export default Component.extend({
@on("didInsertElement")
@observes("code")
_refresh() {
highlightSyntax(this.element, this.siteSettings, this.session);
2015-08-20 13:43:12 -04:00
},
});