MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / makeWhitespaceTheme

Function makeWhitespaceTheme

src/lib/editorManager.js:464–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

462 }
463
464 function makeWhitespaceTheme() {
465 return EditorView.theme({
466 ".cm-highlightSpace": {
467 backgroundImage:
468 "radial-gradient(circle at 50% 54%, var(--cm-space-marker-color) 0.08em, transparent 0.1em)",
469 backgroundPosition: "center",
470 backgroundRepeat: "no-repeat",
471 opacity: "0.5",
472 },
473 ".cm-highlightTab": {
474 backgroundSize: "auto 70%",
475 backgroundPosition: "right 60%",
476 opacity: "0.65",
477 },
478 ".cm-trailingSpace": {
479 backgroundColor: "var(--cm-trailing-space-color)",
480 borderRadius: "2px",
481 },
482 "&": {
483 "--cm-space-marker-color": "rgba(127, 127, 127, 0.6)",
484 "--cm-trailing-space-color": "rgba(255, 77, 77, 0.2)",
485 },
486 });
487 }
488
489 // Centralised CodeMirror options registry for organized configuration
490 // Each spec declares related settings keys, its compartment(s), and a builder returning extension(s)

Callers 1

buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected