Skip to content

Commit 346b693

Browse files
save file
1 parent 7532215 commit 346b693

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

blog/25-10-17/codemirror-in-the-browser/codemirror-in-the-browser.html

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</title>
1515

1616
<meta name=description content='Learn how to set up CodeMirror in your browser to create a powerful, customizable code editor. This guide includes editable, runnable examples so you can explore syntax highlighting, themes, and extensions in real time.'>
17-
17+
1818
<base href='https://ext-code.com/blog/25-10-17/codemirror-in-the-browser/'>
1919
<link rel=canonical href='https://ext-code.com/blog/25-10-17/codemirror-in-the-browser/codemirror-in-the-browser.html'>
2020

@@ -37,9 +37,9 @@
3737

3838

3939
<script src='https://ajaxorg.github.io/ace-builds/src-noconflict/ace.js'></script>
40-
41-
42-
<script src='https://libs.ext-code.com/js/dom/component/component.js'></script>
40+
41+
42+
<script src='https://libs.ext-code.com/js/dom/component/v3.0/component.js'></script>
4343

4444
<script init>
4545
console.clear();
@@ -64,13 +64,13 @@
6464

6565

6666
async function init(){
67-
67+
6868
menu = menumod();
69-
69+
7070
mod.base.add({ext,$,datatype,keydown,menu,menumod,ace});
7171

72-
73-
hdr = mod['blog-hdr'];
72+
73+
hdr = mod['blog-hdr'];
7474
ex = mod.ex;
7575
log = mod['log-mod'];
7676

@@ -108,16 +108,16 @@
108108
[$,datatype,menumod,keydown,debug] = await promise;
109109

110110
mod.stack.complete;
111-
111+
112112
})();
113-
114-
</script init>
115113

114+
</script init>
115+
116116

117117
<link rel=stylesheet href='/blog/css/blog.css'>
118118

119119
<style>
120-
120+
121121
html
122122
{height:100%;font-family:arial}
123123
body
@@ -130,86 +130,86 @@
130130
[component]
131131
{display:none}
132132

133-
.description
133+
.description
134134
{max-width:1000px;text-align:justify;border-left:4px solid #4a90e2;padding:1rem 2rem;
135135
background-color:#f9f9f9;font-family:system-ui,sans-serif;font-size:1rem;line-height:1.6;color:#333}
136136
.description>p
137137
{margin:0}
138138
.description > p+p
139139
{margin:10px 0}
140-
140+
141141
code
142142
{font-family:monospace;background:whitesmoke}
143143
code.inline
144144
{display:inline;padding:5px 10px}
145-
145+
146146
a
147147
{color:#4a90e2;text-decoration:none;font-weight:500}
148-
a:hover
148+
a:hover
149149
{text-decoration:underline}
150150
.link-domain
151151
{font-size:0.85rem;color:#777;margin-left:0.25rem}
152-
.link-domain::before
152+
.link-domain::before
153153
{content:'['}
154154
.link-domain::after
155155
{content:']'}
156156
.link-txt
157157
{}
158-
158+
159159
input
160160
{font-size:16px;padding:5px 7px;box-sizing:border-box;}
161161
input[type=button]
162162
{cursor:pointer}
163-
164-
163+
164+
165165
#editor
166166
{border:1px solid #ccc;height:300px}
167167

168168
</style>
169169

170170
</head>
171-
171+
172172
<body>
173-
174-
<blog-hdr component=grp1>
173+
174+
<blog-hdr component=grp1>
175175
<h1 class=title>
176176
CodeMirror In The Browser
177177
</h1>
178178
<time slot=date datetime=2025-10-29>
179179
29 Oct 2025
180180
</time>
181181
</blog-hdr>
182-
182+
183183
<div class=description>
184184
<p>
185185
Learn how to set up CodeMirror in your browser to create a powerful, customizable code editor.
186186
This guide includes editable, runnable examples so you can explore syntax highlighting, themes, and extensions in real time.
187187
</p>
188188
</div>
189-
190-
189+
190+
191191
<snippet-html-console id=ex src='ex/ex.html' component></snippet-html-console>
192-
193-
192+
193+
194194
<log-mod component></log-mod>
195-
195+
196196

197197
</body>
198-
198+
199199

200200
<script>
201201

202-
202+
203203
function initdom(rootnode){
204-
204+
205205
hdr.initdom();
206206
ex.initdom();
207207
log.initdom();
208208

209209

210210
}//initdom
211211

212-
212+
213213
//:
214214

215215

0 commit comments

Comments
 (0)