PageSourceSearch

https://codemirror.net/demo.js

js codemirror.net collected 2026-10-01 06:47:11 UTC 429 bytes, 3 lines download raw bytes

1(function(){'use strict';const{basicSetup,EditorView}=CM["codemirror"];const{javascript,javascriptLanguage,scopeCompletionSource}=CM["@codemirror/lang-javascript"];window.view=new EditorView({doc:`function hello(who = "world") {
2  console.log(\`Hello, \${who}!\`)
3}`,extensions:[basicSetup,javascript(),javascriptLanguage.data.of({autocomplete:scopeCompletionSource(globalThis)})],parent:document.querySelector("#editor")});})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.