目前我使用了prism插件,在后台嵌入以下代码:
<script type="text/javascript"> var code_html = $("pre").html(); $('pre').replaceWith('<code>'+code_html); $('code').addClass("language-php line-numbers").css("white-space", "pre-wrap"); </script>
江西,赣州
陕西,西安
评论: 如何实现代码高亮?目前只能用JQ嵌入实现
请保存二维码或复制链接进行分享