UNPKG
codemirror
Version:
latest (6.0.1)
version5 (5.65.19)
6.65.7
6.0.1
6.0.0
5.65.19
5.65.18
5.65.17
5.65.16
5.65.15
5.65.14
5.65.13
5.65.12
5.65.11
5.65.10
5.65.9
5.65.8
5.65.7
5.65.6
5.65.5
5.65.4
5.65.3
5.65.2
5.65.1
5.65.0
5.64.0
5.63.3
5.63.2
5.63.1
5.63.0
5.62.3
5.62.2
5.62.1
5.62.0
5.61.1
5.61.0
5.60.0
5.59.4
5.59.3
5.59.2
5.59.1
5.59.0
5.58.3
5.58.2
5.58.1
5.58.0
5.57.0
5.56.0
5.55.0
5.54.0
5.53.2
5.53.0
5.52.2
5.52.0
5.51.0
5.50.2
5.50.0
5.49.2
5.49.0
5.48.4
5.48.2
5.48.0
5.47.0
5.46.0
5.45.0
5.44.0
5.43.0
5.42.2
5.42.0
5.41.0
5.40.2
5.40.0
5.39.2
5.39.0
5.38.0
5.37.0
5.36.0
5.35.0
5.34.0
5.33.0
5.32.0
5.31.0
5.30.0
5.29.0
5.28.0
5.27.4
5.27.2
5.27.0
5.26.0
5.25.2
5.25.0
5.24.2
5.24.0
5.23.0
5.22.2
5.22.0
5.21.0
5.20.2
5.20.0
5.19.0
5.18.3
5.18.2
5.18.0
5.17.0
5.16.0
5.15.2
5.15.0
5.14.2
5.14.0
5.13.4
5.13.2
5.13.0
5.12.0
5.11.0
5.10.0
5.9.0
5.8.0
5.7.0
5.6.0
5.5.0
5.4.0
5.3.0
5.2.0
5.1.0
5.0.0
4.13.0
4.12.0
4.11.0
4.10.0
4.9.0
4.8.0
4.7.0
4.6.0
4.5.0
4.4.0
4.3.0
4.2.0
4.1.0
4.0.3
3.24.0
3.23.0
3.22.0
3.21.0
3.20.0
3.19.0
3.18.0
3.17.0
3.16.0
3.15.0
3.14.1
3.13.0
3.12.0
3.11.1
2.33.0
Full-featured in-browser code editor
codemirror.net/5/
codemirror/CodeMirror
codemirror
/
src
/
line
/
saw_special_spans.js
11 lines
(8 loc)
•
253 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
// Optimize some code when these features are not used.
export
let
sawReadOnlySpans =
false
, sawCollapsedSpans =
false
export
function
seeReadOnlySpans
(
) { sawReadOnlySpans =
true
}
export
function
seeCollapsedSpans
(
) { sawCollapsedSpans =
true
}