ace -- about

Built for Code

Ace is an embeddable code editor written in JavaScript. It matches the features and performance of native editors such as Sublime, Vim and TextMate. It can be easily embedded in any web page and JavaScript application. Ace is maintained as the primary editor for Cloud9 IDE and is the successor of the Mozilla Skywriter (Bespin) project.

 ace是一个嵌入在javascript中的代码编辑器,它与本地编辑器的特性和性能相匹配,如 sublime, vim 和 TextMate。它可以很容易的嵌入到任何网页和javascript应用程序中。ace作为 Cloud9 IDE 的主要编辑器而维护,是 Mozilla SkyWrand 项目的继承者。
 
 
/**
* In fact, you're looking at ACE right now. Go ahead and play with it!
*
* We are currently showing off the JavaScript mode. ACE has support for 45
* language modes and 24 color themes!
*/
 
function add(x, y) {
var resultString = "Hello, ACE! The result of your math is: ";
var result = x + y;
return resultString + result;
}
 
var addResult = add(3, 2);
console.log(addResult);
 
 
 

Looking for a more full-featured demo? Check out the kitchen sink.

查看更全面的演示,查看 kitchen sink      https://ace.c9.io/build/kitchen-sink.html

 

Features

  • Syntax highlighting for over 110 languages (TextMate/Sublime Text.tmlanguage files can be imported)
    •   超过110种语言的语法高亮(TextMate/Sublime  )
  • Over 20 themes (TextMate/Sublime Text .tmtheme files can be imported)
    •   超过 20种主题
  • Automatic indent and outdent
    •   自动缩进与缩出。
  • An optional command line
    •   可选的命令行
  • Handles huge documents (four million lines seems to be the limit!)
    •   处理巨大的文件 (400万行似乎是极限!)
  • Fully customizable key bindings including vim and Emacs modes
    •   完全可定制的键绑定,包括 vim 和emacs模式。
  • Search and replace with regular expressions
    •   通过正则表达式搜索替换
  • Highlight matching parentheses
    •   高亮括号匹配
  • Toggle between soft tabs and real tabs
    •   在软标签和实际标签中切换
  • Displays hidden characters
    •   显示隐藏字符
  • Drag and drop text using the mouse
    •   通过鼠标拖拽文本。
  • Line wrapping
    •   断行
  • Code folding
    •   代码折叠
  • Multiple cursors and selections
    •   多个光标和选中区
  • Live syntax checker (currently JavaScript/CoffeeScript/CSS/XQuery)
    •   在线语法检测
  • Cut, copy, and paste functionality
    •   剪切,复制,粘贴功能

Get the Open-Source Code

Ace is a community project. We actively encourage and support contributions! The Ace source code is hosted on GitHub and released under the BSD license ‐ very simple and friendly to all kinds of projects, whether open-source or not. Take charge of your editor and add your favorite language highlighting and keybindings!

git clone git://github.com/ajaxorg/ace.git

History

Skywriter/Bespin and Ace started as two independent projects both aiming to build a no compromise code editor component for the web. Bespin started as part of Mozilla Labs and was based on the <canvas> tag, while Ace is the editor component of Cloud9 IDE and uses the DOM for rendering. After the release of Ace at JSConf.eu 2010 in Berlin the Skywriter team decided to merge Ace with a simplified version of Skywriter's plugin system and some of Skywriter's extensibility points. All these changes have been merged back to Ace now, which supersedes Skywriter. Both Cloud9 IDE and Mozilla are actively developing and maintaining Ace.

猜你喜欢

转载自www.cnblogs.com/tangyuu/p/9984584.html
ACE