mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-11-27 04:09:51 +08:00
site: add highlight html/xml lang
This commit is contained in:
parent
07a9a771a6
commit
d94e7f8a6a
@ -2,10 +2,12 @@ import hljs from 'highlight.js/lib/core'
|
||||
import javascript from 'highlight.js/lib/languages/javascript'
|
||||
import python from 'highlight.js/lib/languages/python'
|
||||
import cpp from 'highlight.js/lib/languages/cpp'
|
||||
import xml from 'highlight.js/lib/languages/xml'
|
||||
|
||||
hljs.registerLanguage('javascript', javascript)
|
||||
hljs.registerLanguage('python', python)
|
||||
hljs.registerLanguage('cpp', cpp)
|
||||
hljs.registerLanguage('html', xml)
|
||||
hljs.registerLanguage('naive-log', () => ({
|
||||
contains: [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user