mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
13 lines
286 B
Text
13 lines
286 B
Text
|
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.$());
|
||
|
}
|
||
|
|
||
|
});
|