PluginProbe ʕ •ᴥ•ʔ
Syntax-highlighting Code Block (with Server-side Rendering) / trunk
Syntax-highlighting Code Block (with Server-side Rendering) vtrunk
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.4.0 1.5.0 1.5.1 1.5.2
syntax-highlighting-code-block / editor-styles.css
syntax-highlighting-code-block Last commit date
build 1 month ago inc 1 month ago vendor 1 month ago LICENSE 6 years ago editor-styles.css 3 years ago language-names.php 5 years ago readme.txt 1 month ago style.css 3 years ago syntax-highlighting-code-block.php 1 month ago uninstall.php 2 years ago
editor-styles.css
40 lines
1 .shcb-textedit.shcb-textedit-wrap-lines {
2 overflow: auto !important;
3 }
4
5 .shcb-textedit.rich-text {
6 white-space: pre !important;
7 overflow-x: auto !important;
8 }
9
10 .shcb-textedit.rich-text.shcb-textedit-wrap-lines {
11 white-space: pre-wrap !important;
12 }
13
14 .code-block-overlay {
15 box-sizing: border-box;
16 height: 100%;
17 left: 0;
18 padding: inherit; /* To match the padding in the parent since this is positioned absolutely */
19 pointer-events: none;
20 position: absolute;
21 top: 0;
22 white-space: pre;
23 width: 100%;
24 z-index: 10;
25 }
26
27 .shcb-textedit-wrap-lines + .code-block-overlay {
28 white-space: pre-wrap;
29 }
30
31 .code-block-overlay .loc {
32 color: transparent;
33 display: block;
34 line-height: inherit;
35 }
36
37 .code-block-overlay .loc.highlighted {
38 background: rgba(86, 213, 255, 0.2);
39 }
40