-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmain.html
183 lines (171 loc) · 7.31 KB
/
main.html
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<link rel="shortcut icon" href="resources/icons/icon.png" id="icon"/>
<link rel="stylesheet" href="resources/css/main.css"/>
<!-- CodeMirror -->
<script src="resources/plugins/CodeMirror/lib/codemirror.js"></script>
<link rel="stylesheet" href="resources/plugins/CodeMirror/lib/codemirror.css">
<link rel="stylesheet" href="resources/plugins/CodeMirror/theme/bespin.css">
<link rel="stylesheet" href="resources/plugins/CodeMirror/theme/eclipse.css">
<link rel="stylesheet" href="resources/plugins/CodeMirror/theme/hopscotch.css">
<link rel="stylesheet" href="resources/plugins/CodeMirror/theme/mbo.css">
<!-- // CodeMirror -->
<!-- CodeMirror 高亮文件类型 -->
<!--
<script src="resources/plugins/CodeMirror/mode/javascript/javascript.js"></script>
<script src="resources/plugins/CodeMirror/mode/xml/xml.js"></script>
<script src="resources/plugins/CodeMirror/mode/htmlmixed/htmlmixed.js"></script>
<script src="resources/plugins/CodeMirror/mode/css/css.js"></script>
-->
<!-- // CodeMirror 高亮文件类型 -->
<!-- CodeMirror 扩展插件 -->
<script src="resources/plugins/CodeMirror/addon/edit/closebrackets.js"></script><!-- 自动闭合括号 -->
<script src="resources/plugins/CodeMirror/addon/edit/closetag.js"></script><!-- 自动闭合标签 -->
<script src="resources/plugins/CodeMirror/addon/edit/matchbrackets.js"></script><!-- 提示配对括号 -->
<script src="resources/plugins/CodeMirror/addon/edit/matchtags.js"></script><!-- 提示配对标签 -->
<script src="resources/plugins/CodeMirror/addon/edit/trailingspace.js"></script><!-- 结尾多余空格显示错误下划线 -->
<script src="resources/plugins/CodeMirror/addon/fold/foldcode.js"></script>
<script src="resources/plugins/CodeMirror/addon/fold/foldgutter.js"></script>
<script src="resources/plugins/CodeMirror/addon/fold/brace-fold.js"></script>
<script src="resources/plugins/CodeMirror/addon/fold/xml-fold.js"></script>
<script src="resources/plugins/CodeMirror/addon/fold/comment-fold.js"></script>
<link rel="stylesheet" href="resources/plugins/CodeMirror/addon/hint/show-hint.css">
<script src="resources/plugins/CodeMirror/addon/hint/anyword-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/hint/css-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/hint/html-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/hint/javascript-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/hint/show-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/hint/sql-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/hint/xml-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/selection/active-line.js"></script><!-- 高亮当前行 -->
<script src="resources/plugins/CodeMirror/addon/mode/loadmode.js"></script><!-- 动态加载高亮类型 -->
<script src="resources/plugins/CodeMirror/mode/meta.js"></script>
<link rel="stylesheet" href="resources/plugins/CodeMirror/addon/scroll/simplescrollbars.css">
<script src="resources/plugins/CodeMirror/addon/scroll/simplescrollbars.js"></script>
<link rel="stylesheet" href="resources/plugins/CodeMirror/addon/display/fullscreen.css">
<script src="resources/plugins/CodeMirror/addon/display/fullscreen.js"></script>
<script src="resources/plugins/CodeMirror/keymap/sublime.js"></script>
<!-- // CodeMirror 扩展插件 -->
<link rel="stylesheet" href="resources/css/MyCodeMirror.css"/>
<title>troneditor</title>
</head>
<body>
<div id="main">
<div id="menubar">
<ul>
<li>
<a href="javascript:;">File</a>
<ul>
<li id="New"><span>Ctrl+N</span><a href="javascript:;">New</a></li>
<li id="Open"><span>Ctrl+O</span><a href="javascript:;">Open...</a></li>
<li id="Close"><span>Ctrl+W</span><a href="javascript:;">Close</a></li>
<li id="CloseAll"><a href="javascript:;">Close All</a></li>
<li class="separator"></li>
<!--
<li id="Save"><span>Ctrl+S</span><a href="javascript:;">Save</a></li>
<li id="SaveAll"><a href="javascript:;">Save All</a></li>
<li id="SaveAs"><a href="javascript:;">Save As...</a></li>
<li class="separator"></li>
<li id="SaveExit"><a href="javascript:;">Save & Exit</a></li>
-->
<li id="Exit"><a href="javascript:;">Exit</a></li>
</ul>
</li>
<!--
<li>
<a href="javascript:;">Edit</a>
<ul>
<li><span>Ctrl+Z</span><a href="javascript:;">Undo</a></li>
<li><span>Ctrl+Y</span><a href="javascript:;">Redo</a></li>
<li class="separator"></li>
<li><span>Ctrl+X</span><a href="javascript:;">Cut</a></li>
<li><span>Ctrl+C</span><a href="javascript:;">Copy</a></li>
<li><span>Ctrl+V</span><a href="javascript:;">Paste</a></li>
<li><a href="javascript:;">Delete</a></li>
<li class="separator"></li>
<li><span>Ctrl+A</span><a href="javascript:;">Select All</a></li>
</ul>
</li>
-->
<!--
<li>
<a href="javascript:;">View</a>
<ul>
<li><a href="javascript:;">Theme</a></li>
<li class="separator"></li>
<li><a href="javascript:;">Font</a></li>
<li><a href="javascript:;">Line Number</a></li>
<li><a href="javascript:;">Word Wrap</a></li>
<li class="separator"></li>
<li><a href="javascript:;">Full Screen</a></li>
</ul>
</li>
<li>
<a href="javascript:;">Search</a>
<ul>
<li><span>Ctrl+F</span><a href="javascript:;">Find</a></li>
<li><span>Ctrl+H</span><a href="javascript:;">Replace...</a></li>
<li class="separator"></li>
<li><span>Ctrl+L</span><a href="javascript:;">Go To</a></li>
<li><a href="javascript:;">First Place</a></li>
<li><a href="javascript:;">Last Place</a></li>
</ul>
</li>
-->
<!--
<li>
<a href="javascript:;">Tools</a>
<ul class="large">
<li><label for="uglify-js"><input id="uglify-js" type="checkbox" checked/>uglify-js</label></li>
<li><label for="clean-css"><input id="clean-css" type="checkbox" checked/>clean-css</label></li>
<li><label for="html-minifier"><input id="html-minifier" type="checkbox" checked/>html-minifier</label></li>
<li class="separator"></li>
<li><span>Ctrl+Shift+I</span><label for="developer-tools"><input id="developer-tools" type="checkbox"/>Developer Tools</label></li>
</ul>
</li>
-->
<li>
<a href="javascript:;">Skins</a>
<ul class="skins">
<li id="default"><span></span></li>
<li id="black"><span></span></li>
<li id="green"><span></span></li>
<li id="red"><span></span></li>
<li id="blue"><span></span></li>
<li id="orange"><span></span></li>
<li id="purple"><span></span></li>
</ul>
</li>
<li>
<a href="javascript:;">Help</a>
<ul>
<li id="document"><a href="javascript:;">Document</a></li>
<li class="separator"></li>
<li id="about"><a href="javascript:;">About</a></li>
</ul>
</li>
</ul>
</div>
<div id="content">
<div id="code"></div>
<ul id="tabs"></ul>
<!--
<textarea id="editor" name="editor"></textarea>
-->
</div>
</div>
<script src="resources/skins/skins.js"></script>
<script>
/* ------------------------------
* 打开文件数组
* {path:文件路径,editor:编辑器,modified:1已修改0未修改,newfile:1新建文件0打开文件}
* ------------------------------
*/
var editors = new Array();
// 渲染进程
require('./process/renderer_main');
</script>
</body>
</html>