@wangeditor-next/code-highlight 1.0.3 → 1.2.0
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 +85 -0
- package/LICENSE +21 -0
- package/dist/code-highlight/src/constants/svg.d.ts +10 -0
- package/dist/code-highlight/src/custom-types.d.ts +17 -0
- package/dist/code-highlight/src/decorate/index.d.ts +7 -0
- package/dist/code-highlight/src/index.d.ts +9 -0
- package/dist/code-highlight/src/locale/en.d.ts +10 -0
- package/dist/code-highlight/src/locale/index.d.ts +5 -0
- package/dist/code-highlight/src/locale/zh-CN.d.ts +10 -0
- package/dist/code-highlight/src/module/elem-to-html.d.ts +11 -0
- package/dist/code-highlight/src/module/index.d.ts +7 -0
- package/dist/code-highlight/src/module/menu/SelectLangMenu.d.ts +23 -0
- package/dist/code-highlight/src/module/menu/config.d.ts +8 -0
- package/dist/code-highlight/src/module/menu/index.d.ts +15 -0
- package/dist/code-highlight/src/module/parse-style-html.d.ts +8 -0
- package/dist/code-highlight/src/module/render-style.d.ts +13 -0
- package/dist/code-highlight/src/utils/dom.d.ts +15 -0
- package/dist/code-highlight/src/utils/vdom.d.ts +17 -0
- package/dist/code-highlight/src/vendor/prism.d.ts +37 -0
- package/dist/css/style.css +78 -0
- package/dist/index.esm.js +4834 -0
- package/dist/index.js +4845 -0
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# [1.2.0](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/code-highlight@1.1.0...@wangeditor-next/code-highlight@1.2.0) (2024-05-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* ** issue 5872 :** 文本高亮添加 abap 支持 ([cbb0524](https://github.com/cycleccc/wangEditor/commit/cbb05248968b3a9994979c595c23dbdc7c378b7e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 1.1.0 (2024-05-19)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* 代码块 - 增加 lua groovy 语言 ([ef4f62a](https://github.com/cycleccc/wangEditor/commit/ef4f62a876e95995f7c8f6f41d8d44b2505dd5f6))
|
|
23
|
+
* 更新各包之间依赖版本 ([75c552c](https://github.com/cycleccc/wangEditor/commit/75c552cc8ed54765bebb86a7ec5329a7fc79e85f))
|
|
24
|
+
* 修复 pnpm 安装 @wangeditor/editor 出现警告的问题 ([4087fbe](https://github.com/cycleccc/wangEditor/commit/4087fbee01c76bdd55e747a5e86c5e4a8d6a8353))
|
|
25
|
+
* 移除了每个包下的 publishConfig directory 配置 ([16559f0](https://github.com/cycleccc/wangEditor/commit/16559f052545c111318be760e64291a521bdcc65))
|
|
26
|
+
* 粘贴 <code> 代码块出错 ([fc44d9f](https://github.com/cycleccc/wangEditor/commit/fc44d9ff36cb9566d9dc5490b4be14f2e5bd3f3c))
|
|
27
|
+
* issue 4308 - 自定义字号、字体无法回显 ([ad38b8c](https://github.com/cycleccc/wangEditor/commit/ad38b8ce6dbcff1d65785c8d6701238ad351f562))
|
|
28
|
+
* rename es module filename ([1821d4e](https://github.com/cycleccc/wangEditor/commit/1821d4eef49e64efcb41b848849ca7a5e6472044))
|
|
29
|
+
* table - elemToHtml ([e36e609](https://github.com/cycleccc/wangEditor/commit/e36e6092ef721723169afc8bf0560a47ac9f4dfc))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
* code highlight ([42b2f8d](https://github.com/cycleccc/wangEditor/commit/42b2f8d192e2433593c11ad0b8424737f6cffb58))
|
|
35
|
+
* i18n ([c11b244](https://github.com/cycleccc/wangEditor/commit/c11b2440f91b99d40bca18b675c66a22b6e160c9))
|
|
36
|
+
* parse html ([2a5eace](https://github.com/cycleccc/wangEditor/commit/2a5eace00f33cded50b68e8164748ec2480213fd))
|
|
37
|
+
* toHtml 机制 ([1c4d872](https://github.com/cycleccc/wangEditor/commit/1c4d8729f84aaab6a448f23064b34a20596305e9))
|
|
38
|
+
* upload video ([ac8e6f8](https://github.com/cycleccc/wangEditor/commit/ac8e6f8b5258e593714676a6f6be359ba525833c))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## [1.0.3](https://github.com/wangeditor-team/wangEditor/compare/@wangeditor/code-highlight@1.0.2...@wangeditor/code-highlight@1.0.3) (2022-09-14)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* 代码块 - 增加 lua groovy 语言 ([ef4f62a](https://github.com/wangeditor-team/wangEditor/commit/ef4f62a876e95995f7c8f6f41d8d44b2505dd5f6))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [1.0.2](https://github.com/wangeditor-team/wangEditor/compare/@wangeditor/code-highlight@1.0.1...@wangeditor/code-highlight@1.0.2) (2022-06-02)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* issue 4308 - 自定义字号、字体无法回显 ([ad38b8c](https://github.com/wangeditor-team/wangEditor/commit/ad38b8ce6dbcff1d65785c8d6701238ad351f562))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## 1.0.1 (2022-04-18)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Bug Fixes
|
|
70
|
+
|
|
71
|
+
* 更新各包之间依赖版本 ([75c552c](https://github.com/wangeditor-team/wangEditor/commit/75c552cc8ed54765bebb86a7ec5329a7fc79e85f))
|
|
72
|
+
* 修复 pnpm 安装 @wangeditor/editor 出现警告的问题 ([4087fbe](https://github.com/wangeditor-team/wangEditor/commit/4087fbee01c76bdd55e747a5e86c5e4a8d6a8353))
|
|
73
|
+
* 移除了每个包下的 publishConfig directory 配置 ([16559f0](https://github.com/wangeditor-team/wangEditor/commit/16559f052545c111318be760e64291a521bdcc65))
|
|
74
|
+
* 粘贴 <code> 代码块出错 ([fc44d9f](https://github.com/wangeditor-team/wangEditor/commit/fc44d9ff36cb9566d9dc5490b4be14f2e5bd3f3c))
|
|
75
|
+
* rename es module filename ([1821d4e](https://github.com/wangeditor-team/wangEditor/commit/1821d4eef49e64efcb41b848849ca7a5e6472044))
|
|
76
|
+
* table - elemToHtml ([e36e609](https://github.com/wangeditor-team/wangEditor/commit/e36e6092ef721723169afc8bf0560a47ac9f4dfc))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### Features
|
|
80
|
+
|
|
81
|
+
* code highlight ([42b2f8d](https://github.com/wangeditor-team/wangEditor/commit/42b2f8d192e2433593c11ad0b8424737f6cffb58))
|
|
82
|
+
* i18n ([c11b244](https://github.com/wangeditor-team/wangEditor/commit/c11b2440f91b99d40bca18b675c66a22b6e160c9))
|
|
83
|
+
* parse html ([2a5eace](https://github.com/wangeditor-team/wangEditor/commit/2a5eace00f33cded50b68e8164748ec2480213fd))
|
|
84
|
+
* toHtml 机制 ([1c4d872](https://github.com/wangeditor-team/wangEditor/commit/1c4d8729f84aaab6a448f23064b34a20596305e9))
|
|
85
|
+
* upload video ([ac8e6f8](https://github.com/wangeditor-team/wangEditor/commit/ac8e6f8b5258e593714676a6f6be359ba525833c))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 - present wangEditor-team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description icon svg
|
|
3
|
+
* @author wangfupeng
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* 【注意】svg 字符串的长度 ,否则会导致代码体积过大
|
|
7
|
+
* 尽量选择 https://www.iconfont.cn/collections/detail?spm=a313x.7781069.0.da5a778a4&cid=20293
|
|
8
|
+
* 找不到再从 iconfont.com 搜索
|
|
9
|
+
*/
|
|
10
|
+
export declare const JS_SVG = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z\"></path></svg>";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description 自定义 element
|
|
3
|
+
* @author wangfupeng
|
|
4
|
+
*/
|
|
5
|
+
declare type PureText = {
|
|
6
|
+
text: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type PreElement = {
|
|
9
|
+
type: 'pre';
|
|
10
|
+
children: CodeElement[];
|
|
11
|
+
};
|
|
12
|
+
export declare type CodeElement = {
|
|
13
|
+
type: 'code';
|
|
14
|
+
language: string;
|
|
15
|
+
children: PureText[];
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description code-highlight
|
|
3
|
+
* @author wangfupeng
|
|
4
|
+
*/
|
|
5
|
+
import './assets/index.less';
|
|
6
|
+
import './locale/index';
|
|
7
|
+
import wangEditorCodeHighlightModule from './module/index';
|
|
8
|
+
import wangEditorCodeHighLightDecorate from './decorate';
|
|
9
|
+
export { wangEditorCodeHighlightModule, wangEditorCodeHighLightDecorate };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description to html
|
|
3
|
+
* @author wangfupeng
|
|
4
|
+
*/
|
|
5
|
+
import { Element } from 'slate';
|
|
6
|
+
declare function codeToHtml(elem: Element, childrenHtml: string): string;
|
|
7
|
+
export declare const codeToHtmlConf: {
|
|
8
|
+
type: string;
|
|
9
|
+
elemToHtml: typeof codeToHtml;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description code-highlight select lang
|
|
3
|
+
* @author wangfupeng
|
|
4
|
+
*/
|
|
5
|
+
import { ISelectMenu, IDomEditor, IOption } from '@wangeditor-next/core';
|
|
6
|
+
declare class SelectLangMenu implements ISelectMenu {
|
|
7
|
+
readonly title: string;
|
|
8
|
+
readonly iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z\"></path></svg>";
|
|
9
|
+
readonly tag = "select";
|
|
10
|
+
readonly width = 95;
|
|
11
|
+
readonly selectPanelWidth = 115;
|
|
12
|
+
getOptions(editor: IDomEditor): IOption[];
|
|
13
|
+
isActive(editor: IDomEditor): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 获取语言类型
|
|
16
|
+
* @param editor editor
|
|
17
|
+
*/
|
|
18
|
+
getValue(editor: IDomEditor): string | boolean;
|
|
19
|
+
isDisabled(editor: IDomEditor): boolean;
|
|
20
|
+
exec(editor: IDomEditor, value: string | boolean): void;
|
|
21
|
+
private getSelectCodeElem;
|
|
22
|
+
}
|
|
23
|
+
export default SelectLangMenu;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description code-highlight menu
|
|
3
|
+
* @author wangfupeng
|
|
4
|
+
*/
|
|
5
|
+
import SelectLangMenu from './SelectLangMenu';
|
|
6
|
+
export declare const selectLangMenuConf: {
|
|
7
|
+
key: string;
|
|
8
|
+
factory(): SelectLangMenu;
|
|
9
|
+
config: {
|
|
10
|
+
codeLangs: {
|
|
11
|
+
text: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description parse style html
|
|
3
|
+
* @author wangfupeng
|
|
4
|
+
*/
|
|
5
|
+
import { DOMElement } from '../utils/dom';
|
|
6
|
+
import { Descendant } from 'slate';
|
|
7
|
+
import { IDomEditor } from '@wangeditor-next/core';
|
|
8
|
+
export declare function parseCodeStyleHtml(elem: DOMElement, node: Descendant, editor: IDomEditor): Descendant;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description render code highlight style
|
|
3
|
+
* @author wangfupeng
|
|
4
|
+
*/
|
|
5
|
+
import { Descendant } from 'slate';
|
|
6
|
+
import { VNode } from 'snabbdom';
|
|
7
|
+
/**
|
|
8
|
+
* 添加样式
|
|
9
|
+
* @param node slate text
|
|
10
|
+
* @param vnode vnode
|
|
11
|
+
* @returns vnode
|
|
12
|
+
*/
|
|
13
|
+
export declare function renderStyle(node: Descendant, vnode: VNode): VNode;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description DOM 操作
|
|
3
|
+
* @author wangfupeng
|
|
4
|
+
*/
|
|
5
|
+
import $ from 'dom7';
|
|
6
|
+
export { Dom7Array } from 'dom7';
|
|
7
|
+
export default $;
|
|
8
|
+
import DOMNode = globalThis.Node;
|
|
9
|
+
import DOMComment = globalThis.Comment;
|
|
10
|
+
import DOMElement = globalThis.Element;
|
|
11
|
+
import DOMText = globalThis.Text;
|
|
12
|
+
import DOMRange = globalThis.Range;
|
|
13
|
+
import DOMSelection = globalThis.Selection;
|
|
14
|
+
import DOMStaticRange = globalThis.StaticRange;
|
|
15
|
+
export { DOMNode, DOMComment, DOMElement, DOMText, DOMRange, DOMSelection, DOMStaticRange };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description vdom utils fn
|
|
3
|
+
* @author wangfupeng
|
|
4
|
+
*/
|
|
5
|
+
import { VNode, VNodeStyle } from 'snabbdom';
|
|
6
|
+
/**
|
|
7
|
+
* 给 vnode 添加 className
|
|
8
|
+
* @param vnode vnode
|
|
9
|
+
* @param className css class
|
|
10
|
+
*/
|
|
11
|
+
export declare function addVnodeClassName(vnode: VNode, className: string): void;
|
|
12
|
+
/**
|
|
13
|
+
* 给 vnode 添加样式
|
|
14
|
+
* @param vnode vnode
|
|
15
|
+
* @param newStyle { key: val }
|
|
16
|
+
*/
|
|
17
|
+
export declare function addVnodeStyle(vnode: VNode, newStyle: VNodeStyle): void;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description prismjs
|
|
3
|
+
* @author wangfupeng
|
|
4
|
+
*/
|
|
5
|
+
import { Text } from 'slate';
|
|
6
|
+
import Prism from 'prismjs';
|
|
7
|
+
import 'prismjs/components/prism-jsx';
|
|
8
|
+
import 'prismjs/components/prism-typescript';
|
|
9
|
+
import 'prismjs/components/prism-markup';
|
|
10
|
+
import 'prismjs/components/prism-go';
|
|
11
|
+
import 'prismjs/components/prism-php';
|
|
12
|
+
import 'prismjs/components/prism-c';
|
|
13
|
+
import 'prismjs/components/prism-python';
|
|
14
|
+
import 'prismjs/components/prism-java';
|
|
15
|
+
import 'prismjs/components/prism-cpp';
|
|
16
|
+
import 'prismjs/components/prism-csharp';
|
|
17
|
+
import 'prismjs/components/prism-visual-basic';
|
|
18
|
+
import 'prismjs/components/prism-sql';
|
|
19
|
+
import 'prismjs/components/prism-ruby';
|
|
20
|
+
import 'prismjs/components/prism-swift';
|
|
21
|
+
import 'prismjs/components/prism-bash';
|
|
22
|
+
import 'prismjs/components/prism-markdown';
|
|
23
|
+
import 'prismjs/components/prism-lua';
|
|
24
|
+
import 'prismjs/components/prism-groovy';
|
|
25
|
+
import 'prismjs/components/prism-abap';
|
|
26
|
+
export declare const prismTokenTypes: string[];
|
|
27
|
+
/**
|
|
28
|
+
* 获取 prism token 的字符串长度
|
|
29
|
+
* @param token prism token
|
|
30
|
+
*/
|
|
31
|
+
export declare function getPrismTokenLength(token: any): any;
|
|
32
|
+
/**
|
|
33
|
+
* 获取 prism 解析的 token 列表
|
|
34
|
+
* @param textNode text node
|
|
35
|
+
* @param language 代码语言
|
|
36
|
+
*/
|
|
37
|
+
export declare function getPrismTokens(textNode: Text, language: string): (string | Prism.Token)[];
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
.w-e-text-container [data-slate-editor] pre > code {
|
|
2
|
+
text-shadow: 0 1px white;
|
|
3
|
+
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
4
|
+
text-align: left;
|
|
5
|
+
white-space: pre;
|
|
6
|
+
word-spacing: normal;
|
|
7
|
+
word-break: normal;
|
|
8
|
+
word-wrap: normal;
|
|
9
|
+
line-height: 1.5;
|
|
10
|
+
-moz-tab-size: 4;
|
|
11
|
+
-o-tab-size: 4;
|
|
12
|
+
tab-size: 4;
|
|
13
|
+
-webkit-hyphens: none;
|
|
14
|
+
hyphens: none;
|
|
15
|
+
padding: 1em;
|
|
16
|
+
margin: 0.5em 0;
|
|
17
|
+
overflow: auto;
|
|
18
|
+
}
|
|
19
|
+
.w-e-text-container [data-slate-editor] pre > code .token.comment,
|
|
20
|
+
.w-e-text-container [data-slate-editor] pre > code .token.prolog,
|
|
21
|
+
.w-e-text-container [data-slate-editor] pre > code .token.doctype,
|
|
22
|
+
.w-e-text-container [data-slate-editor] pre > code .token.cdata {
|
|
23
|
+
color: slategray;
|
|
24
|
+
}
|
|
25
|
+
.w-e-text-container [data-slate-editor] pre > code .token.punctuation {
|
|
26
|
+
color: #999;
|
|
27
|
+
}
|
|
28
|
+
.w-e-text-container [data-slate-editor] pre > code .token.namespace {
|
|
29
|
+
opacity: 0.7;
|
|
30
|
+
}
|
|
31
|
+
.w-e-text-container [data-slate-editor] pre > code .token.property,
|
|
32
|
+
.w-e-text-container [data-slate-editor] pre > code .token.tag,
|
|
33
|
+
.w-e-text-container [data-slate-editor] pre > code .token.boolean,
|
|
34
|
+
.w-e-text-container [data-slate-editor] pre > code .token.number,
|
|
35
|
+
.w-e-text-container [data-slate-editor] pre > code .token.constant,
|
|
36
|
+
.w-e-text-container [data-slate-editor] pre > code .token.symbol,
|
|
37
|
+
.w-e-text-container [data-slate-editor] pre > code .token.deleted {
|
|
38
|
+
color: #905;
|
|
39
|
+
}
|
|
40
|
+
.w-e-text-container [data-slate-editor] pre > code .token.selector,
|
|
41
|
+
.w-e-text-container [data-slate-editor] pre > code .token.attr-name,
|
|
42
|
+
.w-e-text-container [data-slate-editor] pre > code .token.string,
|
|
43
|
+
.w-e-text-container [data-slate-editor] pre > code .token.char,
|
|
44
|
+
.w-e-text-container [data-slate-editor] pre > code .token.builtin,
|
|
45
|
+
.w-e-text-container [data-slate-editor] pre > code .token.inserted {
|
|
46
|
+
color: #690;
|
|
47
|
+
}
|
|
48
|
+
.w-e-text-container [data-slate-editor] pre > code .token.operator,
|
|
49
|
+
.w-e-text-container [data-slate-editor] pre > code .token.entity,
|
|
50
|
+
.w-e-text-container [data-slate-editor] pre > code .token.url,
|
|
51
|
+
.w-e-text-container [data-slate-editor] pre > code .language-css .token.string,
|
|
52
|
+
.w-e-text-container [data-slate-editor] pre > code .style .token.string {
|
|
53
|
+
color: #9a6e3a;
|
|
54
|
+
}
|
|
55
|
+
.w-e-text-container [data-slate-editor] pre > code .token.atrule,
|
|
56
|
+
.w-e-text-container [data-slate-editor] pre > code .token.attr-value,
|
|
57
|
+
.w-e-text-container [data-slate-editor] pre > code .token.keyword {
|
|
58
|
+
color: #07a;
|
|
59
|
+
}
|
|
60
|
+
.w-e-text-container [data-slate-editor] pre > code .token.function,
|
|
61
|
+
.w-e-text-container [data-slate-editor] pre > code .token.class-name {
|
|
62
|
+
color: #DD4A68;
|
|
63
|
+
}
|
|
64
|
+
.w-e-text-container [data-slate-editor] pre > code .token.regex,
|
|
65
|
+
.w-e-text-container [data-slate-editor] pre > code .token.important,
|
|
66
|
+
.w-e-text-container [data-slate-editor] pre > code .token.variable {
|
|
67
|
+
color: #e90;
|
|
68
|
+
}
|
|
69
|
+
.w-e-text-container [data-slate-editor] pre > code .token.important,
|
|
70
|
+
.w-e-text-container [data-slate-editor] pre > code .token.bold {
|
|
71
|
+
font-weight: bold;
|
|
72
|
+
}
|
|
73
|
+
.w-e-text-container [data-slate-editor] pre > code .token.italic {
|
|
74
|
+
font-style: italic;
|
|
75
|
+
}
|
|
76
|
+
.w-e-text-container [data-slate-editor] pre > code .token.entity {
|
|
77
|
+
cursor: help;
|
|
78
|
+
}
|