After hundreds of debug processes, I've finally found the function which is used to do that. Here is screenshot:
How to introduce more code styles in editor ? Just like I type js code bellowed.
var str = 'nodebb'
Currently I am using highlight.js with my specified plugin. But I don't know how to do this in nodebb's editor.
@SuperMike With the markdown plugin, we already call highlight.js. So this isn't required, unless you're not using that plugin
@julian Greate! I will push my code plugin in to highlight.js