HTML outputs can now be selected and handle control characters correctly

This commit is contained in:
n1474335 2022-07-18 18:39:41 +01:00
parent 0dc2322269
commit 7c8a185a3d
16 changed files with 319 additions and 124 deletions

View file

@ -177,31 +177,12 @@
}
.textarea-wrapper textarea,
.textarea-wrapper #output-text,
.textarea-wrapper #output-highlighter {
.textarea-wrapper #output-text {
font-family: var(--fixed-width-font-family);
font-size: var(--fixed-width-font-size);
color: var(--fixed-width-font-colour);
}
#input-highlighter,
#output-highlighter {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
padding: 3px;
margin: 0;
overflow: hidden;
letter-spacing: normal;
white-space: pre-wrap;
word-wrap: break-word;
color: #fff;
background-color: transparent;
border: none;
pointer-events: none;
}
#output-loader {
position: absolute;
bottom: 0;

View file

@ -232,3 +232,11 @@ optgroup {
.colorpicker-color div {
height: 100px;
}
/* CodeMirror */
.ͼ2 .cm-specialChar,
.cm-specialChar {
color: red;
}