Skip to content

Commit 742c100

Browse files
committed
editor neutral select line script
1 parent b788b49 commit 742c100

24 files changed

Lines changed: 84 additions & 84 deletions

ca/lesson-15.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ Edita petits documents amb diferents errors i fixa't en els missatges d'error qu
168168

169169
<script>
170170
window.addEventListener('load', function(){
171-
if(editors['pre2'] != null) editors['pre2'].moveCursorTo(3, 31, false);
172-
if(editors['pre4'] != null) editors['pre4'].moveCursorTo(3, 18, false);
173-
if(editors['pre7'] != null) editors['pre7'].moveCursorTo(3 , 20, false);
174-
if(editors['pre9'] != null) editors['pre9'].moveCursorTo(7, 0, false);
171+
rlselectline('pre2',4);
172+
rlselectline('pre4',4);
173+
rlselectline('pre7',4);
174+
rlselectline('pre9',8);
175175
}, false);
176176
</script>

ca/more-15.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ En aquest exemple el canvi de tamany té un error de sintaxi doncs l'hem acabat
118118

119119
<script>
120120
window.addEventListener('load', function(){
121-
if(editors['pre0'] != null) editors['pre0'].moveCursorTo(8, 15, false);
122-
if(editors['pre3'] != null) editors['pre3'].moveCursorTo(3, 5, false);
123-
if(editors['pre6'] != null) editors['pre6'].moveCursorTo(4, 30, false);
121+
rlselectline('pre0',9);
122+
rlselectline('pre3',4);
123+
rlselectline('pre6',5);
124124
}, false);
125125
</script>

de/lesson-15.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ Fehlermeldungen.
207207

208208
<script>
209209
window.addEventListener('load', function(){
210-
if(editors['pre2'] != null) editors['pre2'].moveCursorTo(3, 31, false);
211-
if(editors['pre4'] != null) editors['pre4'].moveCursorTo(3, 18, false);
212-
if(editors['pre7'] != null) editors['pre7'].moveCursorTo(3 , 20, false);
213-
if(editors['pre9'] != null) editors['pre9'].moveCursorTo(7, 0, false);
210+
rlselectline('pre2',4);
211+
rlselectline('pre4',4);
212+
rlselectline('pre7',4);
213+
rlselectline('pre9',8);
214214
}, false);
215215
</script>

de/more-15.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ wahr.
139139

140140
<script>
141141
window.addEventListener('load', function(){
142-
if(editors['pre0'] != null) editors['pre0'].moveCursorTo(8, 15, false);
143-
if(editors['pre3'] != null) editors['pre3'].moveCursorTo(3, 5, false);
144-
if(editors['pre6'] != null) editors['pre6'].moveCursorTo(4, 30, false);
142+
rlselectline('pre0',9);
143+
rlselectline('pre3',4);
144+
rlselectline('pre6',5);
145145
}, false);
146146
</script>

es/lesson-15.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ Escriba pequeños documentos con diferentes errores y fíjese en la forma de los
196196

197197
<script>
198198
window.addEventListener('load', function(){
199-
if(editors['pre2'] != null) editors['pre2'].moveCursorTo(2, 31, false);
200-
if(editors['pre4'] != null) editors['pre4'].moveCursorTo(2, 18, false);
201-
if(editors['pre7'] != null) editors['pre7'].moveCursorTo(2, 20, false);
202-
if(editors['pre9'] != null) editors['pre9'].moveCursorTo(6, 0, false);
199+
rlselectline('pre2',4);
200+
rlselectline('pre4',4);
201+
rlselectline('pre7',4);
202+
rlselectline('pre9',8);
203203
}, false);
204204
</script>

es/more-15.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ el paréntesis `)` es interpretado como un «texto normal».
136136

137137
<script>
138138
window.addEventListener('load', function(){
139-
if(editors['pre0'] != null) editors['pre0'].moveCursorTo(8, 15, false);
140-
if(editors['pre3'] != null) editors['pre3'].moveCursorTo(3, 5, false);
141-
if(editors['pre6'] != null) editors['pre6'].moveCursorTo(4, 30, false);
139+
rlselectline('pre0',9);
140+
rlselectline('pre3',4);
141+
rlselectline('pre6',5);
142142
}, false);
143143
</script>

fr/lesson-15.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ forme des messages d'erreur vous renseigne sur ce qui s'est passé.
215215

216216
<script>
217217
window.addEventListener('load', function(){
218-
if(editors['pre2'] != null) editors['pre2'].moveCursorTo(3, 31, false);
219-
if(editors['pre4'] != null) editors['pre4'].moveCursorTo(3, 18, false);
220-
if(editors['pre7'] != null) editors['pre7'].moveCursorTo(3, 20, false);
221-
if(editors['pre9'] != null) editors['pre9'].moveCursorTo(7, 0, false);
218+
rlselectline('pre2',4);
219+
rlselectline('pre4',4);
220+
rlselectline('pre7',4);
221+
rlselectline('pre9',8);
222222
}, false);
223223
</script>

fr/more-15.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ comme du « texte normal », parfaitement valide.
137137

138138
<script>
139139
window.addEventListener('load', function(){
140-
if(editors['pre0'] != null) editors['pre0'].moveCursorTo(8, 15, false);
141-
if(editors['pre3'] != null) editors['pre3'].moveCursorTo(3, 5, false);
142-
if(editors['pre6'] != null) editors['pre6'].moveCursorTo(4, 30, false);
140+
rlselectline('pre0',9);
141+
rlselectline('pre3',4);
142+
rlselectline('pre6',5);
143143
}, false);
144144
</script>

it/lesson-15.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ della forma dei messaggi d'errore.
237237

238238
<script>
239239
window.addEventListener('load', function(){
240-
if(editors['pre2'] != null) editors['pre2'].moveCursorTo(3, 31, false);
241-
if(editors['pre4'] != null) editors['pre4'].moveCursorTo(3, 18, false);
242-
if(editors['pre7'] != null) editors['pre7'].moveCursorTo(3 , 20, false);
243-
if(editors['pre9'] != null) editors['pre9'].moveCursorTo(7, 0, false);
240+
rlselectline('pre2',4);
241+
rlselectline('pre4',4);
242+
rlselectline('pre7',4);
243+
rlselectline('pre9',8);
244244
}, false);
245245
</script>

it/more-15.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ perché vede `)` come ‘testo normale’.
167167

168168
<script>
169169
window.addEventListener('load', function(){
170-
if(editors['pre0'] != null) editors['pre0'].moveCursorTo(8, 15, false);
171-
if(editors['pre3'] != null) editors['pre3'].moveCursorTo(3, 5, false);
172-
if(editors['pre6'] != null) editors['pre6'].moveCursorTo(4, 30, false);
170+
rlselectline('pre0',9);
171+
rlselectline('pre3',4);
172+
rlselectline('pre6',5);
173173
}, false);
174174
</script>

0 commit comments

Comments
 (0)