Embedding to your website is clearly shown on the website:
http://ace.c9.io/#nav=embedding
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>ACE in Action</title>
<style type="text/css" media="screen">
#editor {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
</style>
</head>
<body>
<div id="editor">function foo(items) {
var x = "All this is syntax highlighted";
return x;
}</div>
<script src="/ace-builds/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/javascript");
</script>
</body>
</html>
Cloud9 IDE
If your using the cloud9 IDE, you can download the editor via..
- Github:
git clone git://github.com/ajaxorg/ace.git
- Bower:
bower install --save git clone git://github.com/ajaxorg/ace.git
NOTE: you will need to build the project.
If you want to use the pre built ones use this instead:
https://github.com/ajaxorg/ace-builds.git
Example
Here's my setup for the ace-editor:
https://ide.c9.io/anik786/cloud-9-sandbox