vditor 3.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1072 -0
- package/LICENSE +21 -0
- package/README.md +649 -0
- package/dist/css/content-theme/ant-design.css +210 -0
- package/dist/css/content-theme/dark.css +123 -0
- package/dist/css/content-theme/light.css +101 -0
- package/dist/css/content-theme/wechat.css +94 -0
- package/dist/images/.DS_Store +0 -0
- package/dist/images/emoji/b3log.png +0 -0
- package/dist/images/emoji/chainbook.png +0 -0
- package/dist/images/emoji/doge.png +0 -0
- package/dist/images/emoji/hacpai.png +0 -0
- package/dist/images/emoji/huaji.gif +0 -0
- package/dist/images/emoji/latke.png +0 -0
- package/dist/images/emoji/lute.png +0 -0
- package/dist/images/emoji/octocat.png +0 -0
- package/dist/images/emoji/pipe.png +0 -0
- package/dist/images/emoji/solo.png +0 -0
- package/dist/images/emoji/sym.png +0 -0
- package/dist/images/emoji/trollface.png +0 -0
- package/dist/images/emoji/vditor.png +0 -0
- package/dist/images/emoji/wide.png +0 -0
- package/dist/images/emoji/wulian.png +0 -0
- package/dist/images/img-loading.svg +1 -0
- package/dist/images/logo.png +0 -0
- package/dist/index.css +28 -0
- package/dist/index.d.ts +75 -0
- package/dist/index.min.js +15353 -0
- package/dist/js/.DS_Store +0 -0
- package/dist/js/abcjs/abcjs_basic.min.js +3 -0
- package/dist/js/echarts/echarts.min.js +23 -0
- package/dist/js/flowchart.js/flowchart.min.js +9 -0
- package/dist/js/graphviz/full.render.js +90 -0
- package/dist/js/graphviz/viz.js +333 -0
- package/dist/js/highlight.js/highlight.pack.js +1617 -0
- package/dist/js/highlight.js/styles/abap.css +155 -0
- package/dist/js/highlight.js/styles/algol.css +142 -0
- package/dist/js/highlight.js/styles/algol_nu.css +90 -0
- package/dist/js/highlight.js/styles/ant-design.css +469 -0
- package/dist/js/highlight.js/styles/arduino.css +155 -0
- package/dist/js/highlight.js/styles/autumn.css +136 -0
- package/dist/js/highlight.js/styles/borland.css +146 -0
- package/dist/js/highlight.js/styles/bw.css +149 -0
- package/dist/js/highlight.js/styles/colorful.css +156 -0
- package/dist/js/highlight.js/styles/dracula.css +139 -0
- package/dist/js/highlight.js/styles/emacs.css +166 -0
- package/dist/js/highlight.js/styles/friendly.css +182 -0
- package/dist/js/highlight.js/styles/fruity.css +121 -0
- package/dist/js/highlight.js/styles/github.css +173 -0
- package/dist/js/highlight.js/styles/igor.css +122 -0
- package/dist/js/highlight.js/styles/lovelace.css +145 -0
- package/dist/js/highlight.js/styles/manni.css +138 -0
- package/dist/js/highlight.js/styles/monokai.css +131 -0
- package/dist/js/highlight.js/styles/monokailight.css +179 -0
- package/dist/js/highlight.js/styles/murphy.css +144 -0
- package/dist/js/highlight.js/styles/native.css +163 -0
- package/dist/js/highlight.js/styles/paraiso-dark.css +136 -0
- package/dist/js/highlight.js/styles/paraiso-light.css +135 -0
- package/dist/js/highlight.js/styles/pastie.css +180 -0
- package/dist/js/highlight.js/styles/perldoc.css +140 -0
- package/dist/js/highlight.js/styles/pygments.css +158 -0
- package/dist/js/highlight.js/styles/rainbow_dash.css +163 -0
- package/dist/js/highlight.js/styles/rrt.css +158 -0
- package/dist/js/highlight.js/styles/solarized-dark.css +145 -0
- package/dist/js/highlight.js/styles/solarized-dark256.css +145 -0
- package/dist/js/highlight.js/styles/solarized-light.css +162 -0
- package/dist/js/highlight.js/styles/swapoff.css +144 -0
- package/dist/js/highlight.js/styles/tango.css +183 -0
- package/dist/js/highlight.js/styles/trac.css +166 -0
- package/dist/js/highlight.js/styles/vim.css +143 -0
- package/dist/js/highlight.js/styles/vs.css +112 -0
- package/dist/js/highlight.js/styles/xcode.css +173 -0
- package/dist/js/i18n/en_US.js +85 -0
- package/dist/js/i18n/ja_JP.js +85 -0
- package/dist/js/i18n/ko_KR.js +85 -0
- package/dist/js/i18n/ru_RU.js +85 -0
- package/dist/js/i18n/zh_CN.js +85 -0
- package/dist/js/i18n/zh_TW.js +85 -0
- package/dist/js/icons/ant.js +174 -0
- package/dist/js/icons/material.js +195 -0
- package/dist/js/katex/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Main-Bold.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Main-Italic.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Main-Regular.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Math-Italic.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Script-Regular.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/js/katex/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/js/katex/katex.min.css +1 -0
- package/dist/js/katex/katex.min.js +2 -0
- package/dist/js/lute/.DS_Store +0 -0
- package/dist/js/lute/lute.min.js +46 -0
- package/dist/js/mathjax/.DS_Store +0 -0
- package/dist/js/mathjax/LICENSE +202 -0
- package/dist/js/mathjax/a11y/assistive-mml.js +1 -0
- package/dist/js/mathjax/a11y/complexity.js +1 -0
- package/dist/js/mathjax/a11y/explorer.js +1 -0
- package/dist/js/mathjax/a11y/semantic-enrich.js +1 -0
- package/dist/js/mathjax/input/asciimath.js +1 -0
- package/dist/js/mathjax/input/mml/entities.js +1 -0
- package/dist/js/mathjax/input/mml.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/action.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/all-packages.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/ams.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/amscd.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/autoload.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/bbox.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/boldsymbol.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/braket.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/bussproofs.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/cancel.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/color.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/colorV2.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/configMacros.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/enclose.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/extpfeil.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/html.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/mhchem.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/newcommand.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/noerrors.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/noundefined.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/physics.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/require.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/tagFormat.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/textmacros.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/unicode.js +1 -0
- package/dist/js/mathjax/input/tex/extensions/verb.js +1 -0
- package/dist/js/mathjax/input/tex-base.js +1 -0
- package/dist/js/mathjax/input/tex-full.js +1 -0
- package/dist/js/mathjax/input/tex.js +1 -0
- package/dist/js/mathjax/sre/mathmaps/de.js +104 -0
- package/dist/js/mathjax/sre/mathmaps/en.js +110 -0
- package/dist/js/mathjax/sre/mathmaps/es.js +104 -0
- package/dist/js/mathjax/sre/mathmaps/fr.js +104 -0
- package/dist/js/mathjax/sre/mathmaps/mathmaps_ie.js +518 -0
- package/dist/js/mathjax/sre/mathmaps/nemeth.js +104 -0
- package/dist/js/mathjax/sre/sre-node.js +11 -0
- package/dist/js/mathjax/sre/sre_browser.js +1633 -0
- package/dist/js/mathjax/tex-svg-full.js +1 -0
- package/dist/js/mermaid/mermaid.min.js +32 -0
- package/dist/js/plantuml/plantuml-encoder.min.js +1 -0
- package/dist/method.d.ts +48 -0
- package/dist/method.min.js +2346 -0
- package/dist/ts/constants.d.ts +43 -0
- package/dist/ts/devtools/index.d.ts +7 -0
- package/dist/ts/export/index.d.ts +5 -0
- package/dist/ts/hint/index.d.ts +14 -0
- package/dist/ts/ir/expandMarker.d.ts +2 -0
- package/dist/ts/ir/highlightToolbarIR.d.ts +2 -0
- package/dist/ts/ir/index.d.ts +13 -0
- package/dist/ts/ir/input.d.ts +2 -0
- package/dist/ts/ir/process.d.ts +9 -0
- package/dist/ts/ir/processKeydown.d.ts +2 -0
- package/dist/ts/markdown/abcRender.d.ts +1 -0
- package/dist/ts/markdown/adapterRender.d.ts +33 -0
- package/dist/ts/markdown/anchorRender.d.ts +1 -0
- package/dist/ts/markdown/chartRender.d.ts +1 -0
- package/dist/ts/markdown/codeRender.d.ts +1 -0
- package/dist/ts/markdown/flowchartRender.d.ts +1 -0
- package/dist/ts/markdown/getHTML.d.ts +2 -0
- package/dist/ts/markdown/getMarkdown.d.ts +2 -0
- package/dist/ts/markdown/graphvizRender.d.ts +1 -0
- package/dist/ts/markdown/highlightRender.d.ts +2 -0
- package/dist/ts/markdown/lazyLoadImageRender.d.ts +6 -0
- package/dist/ts/markdown/mathRender.d.ts +10 -0
- package/dist/ts/markdown/mediaRender.d.ts +1 -0
- package/dist/ts/markdown/mermaidRender.d.ts +1 -0
- package/dist/ts/markdown/mindmapRender.d.ts +1 -0
- package/dist/ts/markdown/outlineRender.d.ts +2 -0
- package/dist/ts/markdown/plantumlRender.d.ts +1 -0
- package/dist/ts/markdown/previewRender.d.ts +3 -0
- package/dist/ts/markdown/setLute.d.ts +2 -0
- package/dist/ts/markdown/speechRender.d.ts +7 -0
- package/dist/ts/outline/index.d.ts +7 -0
- package/dist/ts/preview/image.d.ts +2 -0
- package/dist/ts/preview/index.d.ts +9 -0
- package/dist/ts/resize/index.d.ts +6 -0
- package/dist/ts/sv/index.d.ts +13 -0
- package/dist/ts/sv/inputEvent.d.ts +2 -0
- package/dist/ts/sv/process.d.ts +12 -0
- package/dist/ts/sv/processKeydown.d.ts +2 -0
- package/dist/ts/tip/index.d.ts +6 -0
- package/dist/ts/toolbar/Both.d.ts +5 -0
- package/dist/ts/toolbar/Br.d.ts +4 -0
- package/dist/ts/toolbar/CodeTheme.d.ts +6 -0
- package/dist/ts/toolbar/ContentTheme.d.ts +6 -0
- package/dist/ts/toolbar/Counter.d.ts +6 -0
- package/dist/ts/toolbar/Custom.d.ts +5 -0
- package/dist/ts/toolbar/Devtools.d.ts +5 -0
- package/dist/ts/toolbar/Divider.d.ts +4 -0
- package/dist/ts/toolbar/EditMode.d.ts +8 -0
- package/dist/ts/toolbar/Emoji.d.ts +7 -0
- package/dist/ts/toolbar/Export.d.ts +6 -0
- package/dist/ts/toolbar/Fullscreen.d.ts +6 -0
- package/dist/ts/toolbar/Headings.d.ts +7 -0
- package/dist/ts/toolbar/Help.d.ts +5 -0
- package/dist/ts/toolbar/Indent.d.ts +5 -0
- package/dist/ts/toolbar/Info.d.ts +5 -0
- package/dist/ts/toolbar/InsertAfter.d.ts +5 -0
- package/dist/ts/toolbar/InsertBefore.d.ts +5 -0
- package/dist/ts/toolbar/MenuItem.d.ts +5 -0
- package/dist/ts/toolbar/Outdent.d.ts +5 -0
- package/dist/ts/toolbar/Outline.d.ts +5 -0
- package/dist/ts/toolbar/Preview.d.ts +6 -0
- package/dist/ts/toolbar/Record.d.ts +6 -0
- package/dist/ts/toolbar/Redo.d.ts +5 -0
- package/dist/ts/toolbar/Undo.d.ts +5 -0
- package/dist/ts/toolbar/Upload.d.ts +6 -0
- package/dist/ts/toolbar/index.d.ts +9 -0
- package/dist/ts/toolbar/setToolbar.d.ts +21 -0
- package/dist/ts/ui/initUI.d.ts +9 -0
- package/dist/ts/ui/setCodeTheme.d.ts +1 -0
- package/dist/ts/ui/setContentTheme.d.ts +1 -0
- package/dist/ts/ui/setPreviewMode.d.ts +2 -0
- package/dist/ts/ui/setTheme.d.ts +2 -0
- package/dist/ts/undo/index.d.ts +19 -0
- package/dist/ts/upload/getElement.d.ts +2 -0
- package/dist/ts/upload/index.d.ts +9 -0
- package/dist/ts/upload/setHeaders.d.ts +2 -0
- package/dist/ts/util/Options.d.ts +8 -0
- package/dist/ts/util/RecordMedia.d.ts +18 -0
- package/dist/ts/util/addScript.d.ts +2 -0
- package/dist/ts/util/addStyle.d.ts +1 -0
- package/dist/ts/util/code160to32.d.ts +1 -0
- package/dist/ts/util/compatibility.d.ts +7 -0
- package/dist/ts/util/editorCommonEvent.d.ts +10 -0
- package/dist/ts/util/fixBrowserBehavior.d.ts +40 -0
- package/dist/ts/util/getSelectText.d.ts +1 -0
- package/dist/ts/util/hasClosest.d.ts +9 -0
- package/dist/ts/util/hasClosestByHeadings.d.ts +2 -0
- package/dist/ts/util/highlightToolbar.d.ts +2 -0
- package/dist/ts/util/hotKey.d.ts +1 -0
- package/dist/ts/util/log.d.ts +1 -0
- package/dist/ts/util/merge.d.ts +1 -0
- package/dist/ts/util/processCode.d.ts +3 -0
- package/dist/ts/util/selection.d.ts +15 -0
- package/dist/ts/util/toc.d.ts +6 -0
- package/dist/ts/wysiwyg/afterRenderEvent.d.ts +6 -0
- package/dist/ts/wysiwyg/highlightToolbarWYSIWYG.d.ts +5 -0
- package/dist/ts/wysiwyg/index.d.ts +20 -0
- package/dist/ts/wysiwyg/inlineTag.d.ts +11 -0
- package/dist/ts/wysiwyg/input.d.ts +2 -0
- package/dist/ts/wysiwyg/processKeydown.d.ts +3 -0
- package/dist/ts/wysiwyg/renderDomByMd.d.ts +6 -0
- package/dist/ts/wysiwyg/setHeading.d.ts +3 -0
- package/dist/ts/wysiwyg/showCode.d.ts +2 -0
- package/dist/ts/wysiwyg/toolbarEvent.d.ts +2 -0
- package/dist/types/index.d.ts +772 -0
- package/package.json +69 -0
- package/src/assets/.DS_Store +0 -0
- package/src/assets/scss/_content.scss +284 -0
- package/src/assets/scss/_hint.scss +67 -0
- package/src/assets/scss/_ir.scss +275 -0
- package/src/assets/scss/_panel.scss +110 -0
- package/src/assets/scss/_reset.scss +603 -0
- package/src/assets/scss/_sv.scss +133 -0
- package/src/assets/scss/_toolbar.scss +180 -0
- package/src/assets/scss/_tooltipped.scss +171 -0
- package/src/assets/scss/_wysiwyg.scss +195 -0
- package/src/assets/scss/index.scss +83 -0
- package/src/index.ts +502 -0
- package/src/method.ts +65 -0
- package/src/ts/.DS_Store +0 -0
- package/src/ts/constants.ts +64 -0
- package/src/ts/devtools/index.ts +83 -0
- package/src/ts/export/index.ts +81 -0
- package/src/ts/hint/index.ts +267 -0
- package/src/ts/ir/expandMarker.ts +79 -0
- package/src/ts/ir/highlightToolbarIR.ts +97 -0
- package/src/ts/ir/index.ts +251 -0
- package/src/ts/ir/input.ts +231 -0
- package/src/ts/ir/process.ts +220 -0
- package/src/ts/ir/processKeydown.ts +238 -0
- package/src/ts/markdown/abcRender.ts +27 -0
- package/src/ts/markdown/adapterRender.ts +33 -0
- package/src/ts/markdown/anchorRender.ts +19 -0
- package/src/ts/markdown/chartRender.ts +37 -0
- package/src/ts/markdown/codeRender.ts +50 -0
- package/src/ts/markdown/flowchartRender.ts +25 -0
- package/src/ts/markdown/getHTML.ts +11 -0
- package/src/ts/markdown/getMarkdown.ts +12 -0
- package/src/ts/markdown/graphvizRender.ts +49 -0
- package/src/ts/markdown/highlightRender.ts +82 -0
- package/src/ts/markdown/lazyLoadImageRender.ts +56 -0
- package/src/ts/markdown/mathRender.ts +142 -0
- package/src/ts/markdown/mediaRender.ts +78 -0
- package/src/ts/markdown/mermaidRender.ts +127 -0
- package/src/ts/markdown/mindmapRender.ts +74 -0
- package/src/ts/markdown/outlineRender.ts +106 -0
- package/src/ts/markdown/plantumlRender.ts +32 -0
- package/src/ts/markdown/previewRender.ts +143 -0
- package/src/ts/markdown/setLute.ts +23 -0
- package/src/ts/markdown/speechRender.ts +97 -0
- package/src/ts/outline/index.ts +47 -0
- package/src/ts/preview/image.ts +50 -0
- package/src/ts/preview/index.ts +266 -0
- package/src/ts/resize/index.ts +57 -0
- package/src/ts/sv/index.ts +119 -0
- package/src/ts/sv/inputEvent.ts +207 -0
- package/src/ts/sv/process.ts +210 -0
- package/src/ts/sv/processKeydown.ts +196 -0
- package/src/ts/tip/index.ts +31 -0
- package/src/ts/toolbar/Both.ts +28 -0
- package/src/ts/toolbar/Br.ts +8 -0
- package/src/ts/toolbar/CodeTheme.ts +36 -0
- package/src/ts/toolbar/ContentTheme.ts +35 -0
- package/src/ts/toolbar/Counter.ts +40 -0
- package/src/ts/toolbar/Custom.ts +17 -0
- package/src/ts/toolbar/Devtools.ts +28 -0
- package/src/ts/toolbar/Divider.ts +8 -0
- package/src/ts/toolbar/EditMode.ts +193 -0
- package/src/ts/toolbar/Emoji.ts +75 -0
- package/src/ts/toolbar/Export.ts +41 -0
- package/src/ts/toolbar/Fullscreen.ts +61 -0
- package/src/ts/toolbar/Headings.ts +69 -0
- package/src/ts/toolbar/Help.ts +30 -0
- package/src/ts/toolbar/Indent.ts +25 -0
- package/src/ts/toolbar/Info.ts +43 -0
- package/src/ts/toolbar/InsertAfter.ts +18 -0
- package/src/ts/toolbar/InsertBefore.ts +18 -0
- package/src/ts/toolbar/MenuItem.ts +54 -0
- package/src/ts/toolbar/Outdent.ts +24 -0
- package/src/ts/toolbar/Outline.ts +21 -0
- package/src/ts/toolbar/Preview.ts +55 -0
- package/src/ts/toolbar/Record.ts +60 -0
- package/src/ts/toolbar/Redo.ts +18 -0
- package/src/ts/toolbar/Undo.ts +18 -0
- package/src/ts/toolbar/Upload.ts +41 -0
- package/src/ts/toolbar/index.ts +175 -0
- package/src/ts/toolbar/setToolbar.ts +120 -0
- package/src/ts/ui/initUI.ts +164 -0
- package/src/ts/ui/setCodeTheme.ts +16 -0
- package/src/ts/ui/setContentTheme.ts +15 -0
- package/src/ts/ui/setPreviewMode.ts +31 -0
- package/src/ts/ui/setTheme.ts +7 -0
- package/src/ts/undo/index.ts +255 -0
- package/src/ts/upload/getElement.ts +10 -0
- package/src/ts/upload/index.ts +257 -0
- package/src/ts/upload/setHeaders.ts +10 -0
- package/src/ts/util/Options.ts +429 -0
- package/src/ts/util/RecordMedia.ts +170 -0
- package/src/ts/util/addScript.ts +40 -0
- package/src/ts/util/addStyle.ts +10 -0
- package/src/ts/util/code160to32.ts +4 -0
- package/src/ts/util/compatibility.ts +67 -0
- package/src/ts/util/editorCommonEvent.ts +254 -0
- package/src/ts/util/fixBrowserBehavior.ts +1459 -0
- package/src/ts/util/getSelectText.ts +8 -0
- package/src/ts/util/hasClosest.ts +154 -0
- package/src/ts/util/hasClosestByHeadings.ts +27 -0
- package/src/ts/util/highlightToolbar.ts +10 -0
- package/src/ts/util/hotKey.ts +54 -0
- package/src/ts/util/log.ts +6 -0
- package/src/ts/util/merge.ts +18 -0
- package/src/ts/util/processCode.ts +90 -0
- package/src/ts/util/selection.ts +275 -0
- package/src/ts/util/toc.ts +83 -0
- package/src/ts/wysiwyg/afterRenderEvent.ts +41 -0
- package/src/ts/wysiwyg/highlightToolbarWYSIWYG.ts +1105 -0
- package/src/ts/wysiwyg/index.ts +547 -0
- package/src/ts/wysiwyg/inlineTag.ts +129 -0
- package/src/ts/wysiwyg/input.ts +210 -0
- package/src/ts/wysiwyg/processKeydown.ts +363 -0
- package/src/ts/wysiwyg/renderDomByMd.ts +18 -0
- package/src/ts/wysiwyg/setHeading.ts +43 -0
- package/src/ts/wysiwyg/showCode.ts +32 -0
- package/src/ts/wysiwyg/toolbarEvent.ts +333 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* Background */ .highlight-chroma { background-color: #ffffff }
|
|
2
|
+
/* Error */ .highlight-chroma .highlight-err { color: #ff0000 }
|
|
3
|
+
/* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
|
4
|
+
/* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
|
|
5
|
+
/* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #e5e5e5 }
|
|
6
|
+
/* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
|
7
|
+
/* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
|
8
|
+
/* Keyword */ .highlight-chroma .highlight-k { color: #0000ff }
|
|
9
|
+
/* KeywordConstant */ .highlight-chroma .highlight-kc { color: #0000ff }
|
|
10
|
+
/* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #0000ff }
|
|
11
|
+
/* KeywordNamespace */ .highlight-chroma .highlight-kn { color: #0000ff }
|
|
12
|
+
/* KeywordPseudo */ .highlight-chroma .highlight-kp { color: #0000ff }
|
|
13
|
+
/* KeywordReserved */ .highlight-chroma .highlight-kr { color: #0000ff }
|
|
14
|
+
/* KeywordType */ .highlight-chroma .highlight-kt { color: #0000ff }
|
|
15
|
+
/* Name */ .highlight-chroma .highlight-n { color: #000000 }
|
|
16
|
+
/* NameAttribute */ .highlight-chroma .highlight-na { color: #000000 }
|
|
17
|
+
/* NameBuiltin */ .highlight-chroma .highlight-nb { color: #000000 }
|
|
18
|
+
/* NameBuiltinPseudo */ .highlight-chroma .highlight-bp { color: #000000 }
|
|
19
|
+
/* NameClass */ .highlight-chroma .highlight-nc { color: #000000 }
|
|
20
|
+
/* NameConstant */ .highlight-chroma .highlight-no { color: #000000 }
|
|
21
|
+
/* NameDecorator */ .highlight-chroma .highlight-nd { color: #000000 }
|
|
22
|
+
/* NameEntity */ .highlight-chroma .highlight-ni { color: #000000 }
|
|
23
|
+
/* NameException */ .highlight-chroma .highlight-ne { color: #000000 }
|
|
24
|
+
/* NameFunction */ .highlight-chroma .highlight-nf { color: #000000 }
|
|
25
|
+
/* NameFunctionMagic */ .highlight-chroma .highlight-fm { color: #000000 }
|
|
26
|
+
/* NameLabel */ .highlight-chroma .highlight-nl { color: #000000 }
|
|
27
|
+
/* NameNamespace */ .highlight-chroma .highlight-nn { color: #000000 }
|
|
28
|
+
/* NameOther */ .highlight-chroma .highlight-nx { color: #000000 }
|
|
29
|
+
/* NameProperty */ .highlight-chroma .highlight-py { color: #000000 }
|
|
30
|
+
/* NameTag */ .highlight-chroma .highlight-nt { color: #000000 }
|
|
31
|
+
/* NameVariable */ .highlight-chroma .highlight-nv { color: #000000 }
|
|
32
|
+
/* NameVariableClass */ .highlight-chroma .highlight-vc { color: #000000 }
|
|
33
|
+
/* NameVariableGlobal */ .highlight-chroma .highlight-vg { color: #000000 }
|
|
34
|
+
/* NameVariableInstance */ .highlight-chroma .highlight-vi { color: #000000 }
|
|
35
|
+
/* NameVariableMagic */ .highlight-chroma .highlight-vm { color: #000000 }
|
|
36
|
+
/* LiteralString */ .highlight-chroma .highlight-s { color: #55aa22 }
|
|
37
|
+
/* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #55aa22 }
|
|
38
|
+
/* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #55aa22 }
|
|
39
|
+
/* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #55aa22 }
|
|
40
|
+
/* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #55aa22 }
|
|
41
|
+
/* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #55aa22 }
|
|
42
|
+
/* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #55aa22 }
|
|
43
|
+
/* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #55aa22 }
|
|
44
|
+
/* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #55aa22 }
|
|
45
|
+
/* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #55aa22 }
|
|
46
|
+
/* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #55aa22 }
|
|
47
|
+
/* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #55aa22 }
|
|
48
|
+
/* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #55aa22 }
|
|
49
|
+
/* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #55aa22 }
|
|
50
|
+
/* LiteralNumber */ .highlight-chroma .highlight-m { color: #33aaff }
|
|
51
|
+
/* LiteralNumberBin */ .highlight-chroma .highlight-mb { color: #33aaff }
|
|
52
|
+
/* LiteralNumberFloat */ .highlight-chroma .highlight-mf { color: #33aaff }
|
|
53
|
+
/* LiteralNumberHex */ .highlight-chroma .highlight-mh { color: #33aaff }
|
|
54
|
+
/* LiteralNumberInteger */ .highlight-chroma .highlight-mi { color: #33aaff }
|
|
55
|
+
/* LiteralNumberIntegerLong */ .highlight-chroma .highlight-il { color: #33aaff }
|
|
56
|
+
/* LiteralNumberOct */ .highlight-chroma .highlight-mo { color: #33aaff }
|
|
57
|
+
/* OperatorWord */ .highlight-chroma .highlight-ow { color: #0000ff }
|
|
58
|
+
/* Comment */ .highlight-chroma .highlight-c { color: #888888; font-style: italic }
|
|
59
|
+
/* CommentHashbang */ .highlight-chroma .highlight-ch { color: #888888; font-style: italic }
|
|
60
|
+
/* CommentMultiline */ .highlight-chroma .highlight-cm { color: #888888; font-style: italic }
|
|
61
|
+
/* CommentSingle */ .highlight-chroma .highlight-c1 { color: #888888; font-style: italic }
|
|
62
|
+
/* CommentSpecial */ .highlight-chroma .highlight-cs { color: #888888; font-style: italic }
|
|
63
|
+
/* CommentPreproc */ .highlight-chroma .highlight-cp { color: #888888; font-style: italic }
|
|
64
|
+
/* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #888888; font-style: italic }
|
|
65
|
+
|
|
66
|
+
/*
|
|
67
|
+
|
|
68
|
+
Google Code style (c) Aahan Krish <geekpanth3r@gmail.com>
|
|
69
|
+
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
.hljs {
|
|
73
|
+
display: block;
|
|
74
|
+
overflow-x: auto;
|
|
75
|
+
padding: 0.5em;
|
|
76
|
+
background: white;
|
|
77
|
+
color: black;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.hljs-comment,
|
|
81
|
+
.hljs-quote {
|
|
82
|
+
color: #800;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.hljs-keyword,
|
|
86
|
+
.hljs-selector-tag,
|
|
87
|
+
.hljs-section,
|
|
88
|
+
.hljs-title,
|
|
89
|
+
.hljs-name {
|
|
90
|
+
color: #008;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.hljs-variable,
|
|
94
|
+
.hljs-template-variable {
|
|
95
|
+
color: #660;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.hljs-string,
|
|
99
|
+
.hljs-selector-attr,
|
|
100
|
+
.hljs-selector-pseudo,
|
|
101
|
+
.hljs-regexp {
|
|
102
|
+
color: #080;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.hljs-literal,
|
|
106
|
+
.hljs-symbol,
|
|
107
|
+
.hljs-bullet,
|
|
108
|
+
.hljs-meta,
|
|
109
|
+
.hljs-number,
|
|
110
|
+
.hljs-link {
|
|
111
|
+
color: #066;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.hljs-title,
|
|
115
|
+
.hljs-doctag,
|
|
116
|
+
.hljs-type,
|
|
117
|
+
.hljs-attr,
|
|
118
|
+
.hljs-built_in,
|
|
119
|
+
.hljs-builtin-name,
|
|
120
|
+
.hljs-params {
|
|
121
|
+
color: #606;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.hljs-attribute,
|
|
125
|
+
.hljs-subst {
|
|
126
|
+
color: #000;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.hljs-formula {
|
|
130
|
+
background-color: #eee;
|
|
131
|
+
font-style: italic;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.hljs-selector-id,
|
|
135
|
+
.hljs-selector-class {
|
|
136
|
+
color: #9B703F
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.hljs-addition {
|
|
140
|
+
background-color: #baeeba;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.hljs-deletion {
|
|
144
|
+
background-color: #ffc8bd;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.hljs-doctag,
|
|
148
|
+
.hljs-strong {
|
|
149
|
+
font-weight: bold;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.hljs-emphasis {
|
|
153
|
+
font-style: italic;
|
|
154
|
+
}
|
|
155
|
+
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* Background */ .highlight-chroma { background-color: #ffffff }
|
|
2
|
+
/* Error */ .highlight-chroma .highlight-err { }
|
|
3
|
+
/* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
|
4
|
+
/* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
|
|
5
|
+
/* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #e5e5e5 }
|
|
6
|
+
/* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
|
7
|
+
/* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
|
8
|
+
/* Keyword */ .highlight-chroma .highlight-k { font-weight: bold; text-decoration: underline }
|
|
9
|
+
/* KeywordConstant */ .highlight-chroma .highlight-kc { font-weight: bold; text-decoration: underline }
|
|
10
|
+
/* KeywordDeclaration */ .highlight-chroma .highlight-kd { font-weight: bold; font-style: italic; text-decoration: underline }
|
|
11
|
+
/* KeywordNamespace */ .highlight-chroma .highlight-kn { font-weight: bold; text-decoration: underline }
|
|
12
|
+
/* KeywordPseudo */ .highlight-chroma .highlight-kp { font-weight: bold; text-decoration: underline }
|
|
13
|
+
/* KeywordReserved */ .highlight-chroma .highlight-kr { font-weight: bold; text-decoration: underline }
|
|
14
|
+
/* KeywordType */ .highlight-chroma .highlight-kt { font-weight: bold; text-decoration: underline }
|
|
15
|
+
/* NameBuiltin */ .highlight-chroma .highlight-nb { font-weight: bold; font-style: italic }
|
|
16
|
+
/* NameBuiltinPseudo */ .highlight-chroma .highlight-bp { font-weight: bold; font-style: italic }
|
|
17
|
+
/* NameClass */ .highlight-chroma .highlight-nc { color: #666666; font-weight: bold; font-style: italic }
|
|
18
|
+
/* NameConstant */ .highlight-chroma .highlight-no { color: #666666; font-weight: bold; font-style: italic }
|
|
19
|
+
/* NameFunction */ .highlight-chroma .highlight-nf { color: #666666; font-weight: bold; font-style: italic }
|
|
20
|
+
/* NameNamespace */ .highlight-chroma .highlight-nn { color: #666666; font-weight: bold; font-style: italic }
|
|
21
|
+
/* NameVariable */ .highlight-chroma .highlight-nv { color: #666666; font-weight: bold; font-style: italic }
|
|
22
|
+
/* LiteralString */ .highlight-chroma .highlight-s { color: #666666; font-style: italic }
|
|
23
|
+
/* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #666666; font-style: italic }
|
|
24
|
+
/* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #666666; font-style: italic }
|
|
25
|
+
/* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #666666; font-style: italic }
|
|
26
|
+
/* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #666666; font-style: italic }
|
|
27
|
+
/* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #666666; font-style: italic }
|
|
28
|
+
/* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #666666; font-style: italic }
|
|
29
|
+
/* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #666666; font-style: italic }
|
|
30
|
+
/* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #666666; font-style: italic }
|
|
31
|
+
/* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #666666; font-style: italic }
|
|
32
|
+
/* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #666666; font-style: italic }
|
|
33
|
+
/* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #666666; font-style: italic }
|
|
34
|
+
/* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #666666; font-style: italic }
|
|
35
|
+
/* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #666666; font-style: italic }
|
|
36
|
+
/* OperatorWord */ .highlight-chroma .highlight-ow { font-weight: bold }
|
|
37
|
+
/* Comment */ .highlight-chroma .highlight-c { color: #888888; font-style: italic }
|
|
38
|
+
/* CommentHashbang */ .highlight-chroma .highlight-ch { color: #888888; font-style: italic }
|
|
39
|
+
/* CommentMultiline */ .highlight-chroma .highlight-cm { color: #888888; font-style: italic }
|
|
40
|
+
/* CommentSingle */ .highlight-chroma .highlight-c1 { color: #888888; font-style: italic }
|
|
41
|
+
/* CommentSpecial */ .highlight-chroma .highlight-cs { color: #888888; font-weight: bold }
|
|
42
|
+
/* CommentPreproc */ .highlight-chroma .highlight-cp { color: #888888; font-weight: bold }
|
|
43
|
+
/* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #888888; font-weight: bold }
|
|
44
|
+
|
|
45
|
+
/*
|
|
46
|
+
Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine (@thingsinjars)
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
.hljs {
|
|
50
|
+
display: block;
|
|
51
|
+
overflow-x: auto;
|
|
52
|
+
padding: 0.5em;
|
|
53
|
+
color: #000;
|
|
54
|
+
background: #f8f8ff;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.hljs-comment,
|
|
58
|
+
.hljs-quote {
|
|
59
|
+
color: #408080;
|
|
60
|
+
font-style: italic;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.hljs-keyword,
|
|
64
|
+
.hljs-selector-tag,
|
|
65
|
+
.hljs-literal,
|
|
66
|
+
.hljs-subst {
|
|
67
|
+
color: #954121;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.hljs-number {
|
|
71
|
+
color: #40a070;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.hljs-string,
|
|
75
|
+
.hljs-doctag {
|
|
76
|
+
color: #219161;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.hljs-selector-id,
|
|
80
|
+
.hljs-selector-class,
|
|
81
|
+
.hljs-section,
|
|
82
|
+
.hljs-type {
|
|
83
|
+
color: #19469d;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.hljs-params {
|
|
87
|
+
color: #00f;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.hljs-title {
|
|
91
|
+
color: #458;
|
|
92
|
+
font-weight: bold;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.hljs-tag,
|
|
96
|
+
.hljs-name,
|
|
97
|
+
.hljs-attribute {
|
|
98
|
+
color: #000080;
|
|
99
|
+
font-weight: normal;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.hljs-variable,
|
|
103
|
+
.hljs-template-variable {
|
|
104
|
+
color: #008080;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.hljs-regexp,
|
|
108
|
+
.hljs-link {
|
|
109
|
+
color: #b68;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.hljs-symbol,
|
|
113
|
+
.hljs-bullet {
|
|
114
|
+
color: #990073;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.hljs-built_in,
|
|
118
|
+
.hljs-builtin-name {
|
|
119
|
+
color: #0086b3;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.hljs-meta {
|
|
123
|
+
color: #999;
|
|
124
|
+
font-weight: bold;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.hljs-deletion {
|
|
128
|
+
background: #fdd;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.hljs-addition {
|
|
132
|
+
background: #dfd;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.hljs-emphasis {
|
|
136
|
+
font-style: italic;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.hljs-strong {
|
|
140
|
+
font-weight: bold;
|
|
141
|
+
}
|
|
142
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* Background */ .highlight-chroma { background-color: #ffffff }
|
|
2
|
+
/* Error */ .highlight-chroma .highlight-err { }
|
|
3
|
+
/* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
|
4
|
+
/* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
|
|
5
|
+
/* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #e5e5e5 }
|
|
6
|
+
/* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
|
7
|
+
/* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
|
8
|
+
/* Keyword */ .highlight-chroma .highlight-k { font-weight: bold }
|
|
9
|
+
/* KeywordConstant */ .highlight-chroma .highlight-kc { font-weight: bold }
|
|
10
|
+
/* KeywordDeclaration */ .highlight-chroma .highlight-kd { font-weight: bold; font-style: italic }
|
|
11
|
+
/* KeywordNamespace */ .highlight-chroma .highlight-kn { font-weight: bold }
|
|
12
|
+
/* KeywordPseudo */ .highlight-chroma .highlight-kp { font-weight: bold }
|
|
13
|
+
/* KeywordReserved */ .highlight-chroma .highlight-kr { font-weight: bold }
|
|
14
|
+
/* KeywordType */ .highlight-chroma .highlight-kt { font-weight: bold }
|
|
15
|
+
/* NameBuiltin */ .highlight-chroma .highlight-nb { font-weight: bold; font-style: italic }
|
|
16
|
+
/* NameBuiltinPseudo */ .highlight-chroma .highlight-bp { font-weight: bold; font-style: italic }
|
|
17
|
+
/* NameClass */ .highlight-chroma .highlight-nc { color: #666666; font-weight: bold; font-style: italic }
|
|
18
|
+
/* NameConstant */ .highlight-chroma .highlight-no { color: #666666; font-weight: bold; font-style: italic }
|
|
19
|
+
/* NameFunction */ .highlight-chroma .highlight-nf { color: #666666; font-weight: bold; font-style: italic }
|
|
20
|
+
/* NameNamespace */ .highlight-chroma .highlight-nn { color: #666666; font-weight: bold; font-style: italic }
|
|
21
|
+
/* NameVariable */ .highlight-chroma .highlight-nv { color: #666666; font-weight: bold; font-style: italic }
|
|
22
|
+
/* LiteralString */ .highlight-chroma .highlight-s { color: #666666; font-style: italic }
|
|
23
|
+
/* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #666666; font-style: italic }
|
|
24
|
+
/* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #666666; font-style: italic }
|
|
25
|
+
/* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #666666; font-style: italic }
|
|
26
|
+
/* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #666666; font-style: italic }
|
|
27
|
+
/* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #666666; font-style: italic }
|
|
28
|
+
/* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #666666; font-style: italic }
|
|
29
|
+
/* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #666666; font-style: italic }
|
|
30
|
+
/* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #666666; font-style: italic }
|
|
31
|
+
/* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #666666; font-style: italic }
|
|
32
|
+
/* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #666666; font-style: italic }
|
|
33
|
+
/* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #666666; font-style: italic }
|
|
34
|
+
/* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #666666; font-style: italic }
|
|
35
|
+
/* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #666666; font-style: italic }
|
|
36
|
+
/* OperatorWord */ .highlight-chroma .highlight-ow { font-weight: bold }
|
|
37
|
+
/* Comment */ .highlight-chroma .highlight-c { color: #888888; font-style: italic }
|
|
38
|
+
/* CommentHashbang */ .highlight-chroma .highlight-ch { color: #888888; font-style: italic }
|
|
39
|
+
/* CommentMultiline */ .highlight-chroma .highlight-cm { color: #888888; font-style: italic }
|
|
40
|
+
/* CommentSingle */ .highlight-chroma .highlight-c1 { color: #888888; font-style: italic }
|
|
41
|
+
/* CommentSpecial */ .highlight-chroma .highlight-cs { color: #888888; font-weight: bold }
|
|
42
|
+
/* CommentPreproc */ .highlight-chroma .highlight-cp { color: #888888; font-weight: bold }
|
|
43
|
+
/* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #888888; font-weight: bold }
|
|
44
|
+
|
|
45
|
+
/*
|
|
46
|
+
|
|
47
|
+
Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
|
|
48
|
+
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
.hljs {
|
|
52
|
+
display: block;
|
|
53
|
+
overflow-x: auto;
|
|
54
|
+
padding: 0.5em;
|
|
55
|
+
background: white;
|
|
56
|
+
color: black;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.hljs-string,
|
|
60
|
+
.hljs-variable,
|
|
61
|
+
.hljs-template-variable,
|
|
62
|
+
.hljs-symbol,
|
|
63
|
+
.hljs-bullet,
|
|
64
|
+
.hljs-section,
|
|
65
|
+
.hljs-addition,
|
|
66
|
+
.hljs-attribute,
|
|
67
|
+
.hljs-link {
|
|
68
|
+
color: #888;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.hljs-comment,
|
|
72
|
+
.hljs-quote,
|
|
73
|
+
.hljs-meta,
|
|
74
|
+
.hljs-deletion {
|
|
75
|
+
color: #ccc;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.hljs-keyword,
|
|
79
|
+
.hljs-selector-tag,
|
|
80
|
+
.hljs-section,
|
|
81
|
+
.hljs-name,
|
|
82
|
+
.hljs-type,
|
|
83
|
+
.hljs-strong {
|
|
84
|
+
font-weight: bold;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.hljs-emphasis {
|
|
88
|
+
font-style: italic;
|
|
89
|
+
}
|
|
90
|
+
|