-
Notifications
You must be signed in to change notification settings - Fork 0
/
Module._.htm
70 lines (61 loc) · 1.81 KB
/
Module._.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE HTML>
<html>
<head>
<title>Les modules</title>
<link rel="stylesheet" type="text/css" href="src/css/styles.css">
<link rel="stylesheet" type="text/css" href="src/css/syntaxes.css">
<style>
.editor {
width:100%;
height:400px;
}
</style>
</head>
<body spellcheck="false">
<a href="./index.htm">index</a>
<h1>Les modules</h1>
<div><h2>Objectifs</h2>
<ul>
<li>Modulariser l'éditeur...</li>
</ul>
</div>
<div><h2>A noter</h2>
<ul>
<li>Les modules sont des fichiers javascript présent dans le dossier <code>src/js/</code></li>
<li>Ils peuvent être chargés avec la méthode <code>Editor.loadModules( 'module1,module2' )</code></li>
</ul>
</div>
<div><h2>Aperçu</h2>
<textarea id="eSource" wrap="off" style="width:45%; height:400px; display:none;"></textarea>
<div id="eContents"><!--
à compléter...
--></div>
<div id="eStats" class="stats"></div>
<div id="eEditeur1"></div>
</div>
<script src="shared.js"></script>
<script src="src/js/Editor.js"></script>
<script src="src/js/Commands.js"></script>
<script src="src/js/KeyBoard.js"></script>
<script src="src/js/Selection.js"></script>
<script src="src/js/UndoStack.js"></script>
<script src="src/js/Syntax.js"></script>
<script src="src/js/Brackets.js"></script>
<script src="src/js/Fold.js"></script>
<script src="src/js/TextMarker.js"></script>
<script>
_( 'eEditeur1,eSource,eContents,eStats' )
/*
BenchmarkFunctions(
eStats, Editor.Modules.Fold.prototype,
'getBrackets,refresh,highlight,fold,foldLevel,unfold,unfoldLevel,toggle,show,hide'
)
*/
var oEditor = new Editor ( eEditeur1, { sSyntax:'TXT', sTopMenu:'Syntax' })
var D = oEditor.newDoc( '', eSource.value||eContents.firstChild.data )
</script>
<link rel="stylesheet" type="text/css" href="src/toc.css">
<script src="src/toc.js"></script>
<script> setTOC( "Module._.htm" ) </script>
</body>
</html>