commit
0b35f98c65
1 changed files with 6 additions and 3 deletions
|
|
@ -86,7 +86,7 @@ console.log(addResult);</div>
|
|||
<p id="embed_link"><a href="#nav=embedding">Learn how to embed this in your own site</a></p>
|
||||
<p class="highlight_note">Looking for a more full-featured demo? Check out the
|
||||
<a href="http://ace.ajax.org/build/kitchen-sink.html" target="_blank">kitchen sink</a>.</p>
|
||||
<h2>ACE Features</h2>
|
||||
<h2>Features</h2>
|
||||
<ul class="content-list">
|
||||
<li><a href="http://pcwalton.blogspot.com/2010/11/syntax-highlighting-specification.html">Syntax highlighting</a> for over 40 languages (TextMate/Sublime/<em>.tmlanguage</em> files can be imported)</li>
|
||||
<li>Over 20 themes (TextMate/Sublime/<em>.tmtheme</em> files can be imported)</li>
|
||||
|
|
@ -137,7 +137,7 @@ console.log(addResult);</div>
|
|||
</div>
|
||||
<div class="tab-pane fade active in" id="embedding">
|
||||
<h1>Embedding ACE in Your Site</h1>
|
||||
<p>ACE can be easily embedded into a web page:</p>
|
||||
<p>ACE can be easily embedded into a web page. Just copy the code below:</p>
|
||||
|
||||
<div id="embed_ace_wrapper" class="ace_editor_wrapper">
|
||||
<div id="embedded_ace_code"><!DOCTYPE html>
|
||||
|
|
@ -173,7 +173,10 @@ console.log(addResult);</div>
|
|||
common operations, such as setting a different language mode or
|
||||
getting the contents from the editor.</p>
|
||||
<h2>Loading ACE from a Local URL</h2>
|
||||
<p>The above code is sufficient to get started, but if you want to clone host ACE locally you can
|
||||
<p>The above code is all you need to embed ACE in your site (including setting language modes
|
||||
and themes). Plus it's super fast because it's on Amazon's distributed content network.
|
||||
</p>
|
||||
<p>But, if you want to clone host ACE locally you can
|
||||
use one of the <a href="https://github.com/ajaxorg/ace-builds/">pre-packaged versions</a>. Just copy
|
||||
one of <code>src*</code> subdirectories somewhere into your project, or use RequireJS to load the
|
||||
contents of <a href="https://github.com/ajaxorg/ace/tree/master/lib/ace">lib/ace</a> as <code>ace</code>:</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue