13 lines
286 B
Plaintext
13 lines
286 B
Plaintext
|
import { on, observes } from 'ember-addons/ember-computed-decorators';
|
||
|
import highlightSyntax from 'discourse/lib/highlight-syntax';
|
||
|
|
||
|
export default Ember.Component.extend({
|
||
|
|
||
|
@on('didInsertElement')
|
||
|
@observes('code')
|
||
|
_refresh: function() {
|
||
|
highlightSyntax(this.$());
|
||
|
}
|
||
|
|
||
|
});
|