This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
84 lines (65 loc) · 3.26 KB
/
README
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
2007-06-05
____
/ __ \
( (__) )___ ____
\__ / _ \ / _ )
/ /| | | ( (/ /
/_/ |_| |_|\____)
Copyright (C) 2006-2007 Rob Rohan
http://www.9ne.org
Thanks for playing with 9ne. If you have any questions or comments you can send
me an email at robrohan@gmail.com. I'll try to answer as soon as I can.
0. WHAT IS 9NE
1. BUILDING
2. RUNNING
3. CODE LAYOUT
4. DOCUMENTATION
0. WHAT IS 9NE
9ne, pronounced "nine", is an online, dynamically extendable, color coding
editor.
1. BUILDING
a) Compiling the Compressor
Since this is all javascript, building is kind of a loose term. What building
means in 9ne is compressing the javascript. 9ne uses the included application
jsmin.c which you will have to compile yourself. It couldn't be eaiser, just do:
$gcc -o jsmin.exe jsmin.c
That command should produce an executable named "jsmin.exe". If you want to use
the build script without modification, it must be named "jsmin.exe". The gcc
compiler should be readily available on Macintosh and Linux systems. If you are
using Windows you'll probably have to use cygiwn. The build script requires a
bash shell (Macintosh, Linux, and all other Unixy OSs should be fine).
b) Using the build script
To use the build script you'll need to have ant installed. If you use Macintosh
and you have the developer tools installed, just type "ant" from the shell. If
you use Eclipse as your IDE, right click on the build.xml file and choose "run".
If none of those apply to you, download and install ant from Apache
(http://ant.apache.org/ ; requires Java as well).
When the build script runs, it will create a directory called "bin" and move
all the needed files into that directory.
2. RUNNING
To run it, copy the bin directory to a web server and hit the 9ne.php (or
9ne.html) file. *IMPORTANT* you'll have to run it from a web server not from the
local hard disk. The reason for this is because 9ne dynamically loads bits of
code after startup, and some browsers security setting wont allow that to
happen.
3. CODE LAYOUT
Here is the basic layout of what is where. The source tree and the bin tree are
the same (or they should be) after a compile (see the BUILDING section).
/src/
9ne.html Main entry point file
9ne.php Main entry point file
bindings/ Keybinding files
code/ The javascript source code
docs/ The runtime docs (tutorials, keys, etc)
libs/ 3rd party libraries
modes/ Dynamically loaded mode support files
css/
xml/
javascript/
...
style/ The CSS used to control 9ne
themes/ The CSS used to color 9ne - to skin it
4. DOCUMENTATION
The code uses NaturalDocs comments though out. If you'd like to generate the
documentation you can download and install NaturalDocs, and then run the ant
task to generate documentation. It is also available on line at http://9ne.org.