|
|
@ -141,8 +141,8 @@ code line
|
|
|
|
</pre>
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 第三方语法高亮库 -->
|
|
|
|
<!-- 第三方语法高亮库 -->
|
|
|
|
<script src="https://cdn.staticfile.net/highlight.js/11.8.0/highlight.min.js"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
|
|
|
|
<script src="https://cdn.staticfile.net/prism/1.29.0/prism.min.js"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- layui -->
|
|
|
|
<!-- layui -->
|
|
|
|
<script src="../src/layui.js"></script>
|
|
|
|
<script src="../src/layui.js"></script>
|
|
|
@ -157,17 +157,17 @@ layui.use(['code', 'dropdown'], function(){
|
|
|
|
// 高亮主题 css 库
|
|
|
|
// 高亮主题 css 库
|
|
|
|
var themeData = $.map([
|
|
|
|
var themeData = $.map([
|
|
|
|
// hljs 主题库
|
|
|
|
// hljs 主题库
|
|
|
|
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/vs2015.min.css',
|
|
|
|
'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/vs2015.min.css',
|
|
|
|
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/vs.min.css',
|
|
|
|
'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/vs.min.css',
|
|
|
|
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/github-dark.min.css',
|
|
|
|
'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github-dark.min.css',
|
|
|
|
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/github.min.css',
|
|
|
|
'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css',
|
|
|
|
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/base16/google-dark.min.css',
|
|
|
|
'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/base16/google-dark.min.css',
|
|
|
|
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/base16/google-light.min.css',
|
|
|
|
'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/base16/google-light.min.css',
|
|
|
|
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/monokai-sublime.min.css',
|
|
|
|
'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/monokai-sublime.min.css',
|
|
|
|
'-',
|
|
|
|
'-',
|
|
|
|
// prism 主题库
|
|
|
|
// prism 主题库
|
|
|
|
'https://cdn.staticfile.net/prism/1.29.0/themes/prism-dark.min.css',
|
|
|
|
'https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-dark.min.css',
|
|
|
|
'https://cdn.staticfile.net/prism/1.29.0/themes/prism.min.css'
|
|
|
|
'https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css'
|
|
|
|
], function(v, index) {
|
|
|
|
], function(v, index) {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
title: v,
|
|
|
|
title: v,
|
|
|
|