forked from shuzheng/troneditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
167 lines (155 loc) · 6.65 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
<!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><a href="javascript:;">New</a></li>
<li><a href="javascript:;">Open...</a></li>
<li><a href="javascript:;">Close</a></li>
<li><a href="javascript:;">Close All</a></li>
<li class="separator"></li>
<li><a href="javascript:;">Save</a></li>
<li><a href="javascript:;">Save All</a></li>
<li><a href="javascript:;">Save As...</a></li>
<li class="separator"></li>
<li><a href="javascript:;">Save & Exit</a></li>
<li><a href="javascript:;">Exit</a></li>
</ul>
</li>
<li>
<a href="javascript:;">Edit</a>
<ul>
<li><a href="javascript:;">Undo</a></li>
<li><a href="javascript:;">Redo</a></li>
<li class="separator"></li>
<li><a href="javascript:;">Cut</a></li>
<li><a href="javascript:;">Copy</a></li>
<li><a href="javascript:;">Paste</a></li>
<li><a href="javascript:;">Delete</a></li>
<li class="separator"></li>
<li><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><a href="javascript:;">Find</a></li>
<li><a href="javascript:;">Replace...</a></li>
<li class="separator"></li>
<li><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>
<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><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><a href="javascript:;">Keyboard Map</a></li>
<li class="separator"></li>
<li id="document"><a href="javascript:;">Document</a></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>
require('./process/renderer_main');
</script>
</body>
</html>