Skip to content
This repository was archived by the owner on May 18, 2021. It is now read-only.

Commit 602af90

Browse files
committed
Start work on a new implementation based on Ace and Chromeless.
1 parent 633590a commit 602af90

39 files changed

+15436
-96
lines changed

Diff for: .gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
*.swp
3+
*.tmp
4+

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Despin
22
======
33

4-
Despin is a Firefox extension that turns a browser into a text editor. It embeds the awesome [Bespin](https://bespin.mozilla.com/) editor providing traditional editor functionality for local files.
4+
Despin is a text editor for programmers. It embeds the awesome [Ace](http://ace.ajax.org/) editor providing traditional editor functionality for local files.

Diff for: build.xml

-27
This file was deleted.

Diff for: chromeless/appinfo.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"build_id": "20110218000000",
3+
"vendor": "Panagiotis Astithas",
4+
"name": "Despin",
5+
"resizable": true,
6+
"developer_email": "[email protected]",
7+
"version": "0.3"
8+
}

Diff for: chromeless/index.html

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Despin Text Editor</title>
6+
<style type="text/css" media="screen">
7+
body {
8+
overflow: hidden;
9+
}
10+
11+
#editor {
12+
margin: 0;
13+
position: absolute;
14+
top: 0;
15+
bottom: 0;
16+
left: 0;
17+
right: 0;
18+
}
19+
</style>
20+
</head>
21+
<body>
22+
23+
<pre id="editor">function foo(items) {
24+
var i;
25+
for (i = 0; i &lt; items.length; i++) {
26+
alert("Ace Rocks " + items[i]);
27+
}
28+
}</pre>
29+
<input id="cockpitInput" type="text"/>
30+
31+
<script src="src/ace.js" type="text/javascript" charset="utf-8"></script>
32+
<script src="src/theme-twilight.js" type="text/javascript" charset="utf-8"></script>
33+
<script src="src/mode-javascript.js" type="text/javascript" charset="utf-8"></script>
34+
<script>
35+
window.onload = function() {
36+
var editor = ace.edit("editor");
37+
editor.setTheme("ace/theme/twilight");
38+
39+
var JavaScriptMode = require("ace/mode/javascript").Mode;
40+
editor.getSession().setMode(new JavaScriptMode());
41+
};
42+
</script>
43+
44+
</body>
45+
</html>

0 commit comments

Comments
 (0)