Codemirror-開源線上代碼編輯器

來源:互聯網
上載者:User

Codemirror是一款“Online Source Editor”,基於Javascript,短小精悍,即時線上代碼高亮顯示,他不是某個富文字編輯器的附屬產品,他是許多大名鼎鼎的線上代碼編輯器的基礎庫。

CodeMirror的作者是一個十分嚮往自由的人。但他的CodeMirror絕對不簡單,看看下面這份清單:

  • Google Earth KML sampler
  • Eloquent JavaScript's console
  • The qooxdoo playground
  • A cool tutorial about the element
  • An online IDE for the Orc programming language
  • Google's API playground
  • Raphaël Live
  • JS Bin
  • The RokPad plugin for Joomla
  • The scraperwiki editor
  • jsLinb UI Builder

上述的這些線上代碼編輯器都是基於CodeMirror的,是不是感到驚訝,裡面有你熟悉的JS Library。

CodeMirror本身的定位也很明確,短小精悍,但代碼品質很高,在Google Group的群裡面,人們熱烈的進行著用CodeMirror做各式各樣改造的討論,可見對他的歡迎。以下有各種不同語言的Demo示範:

  • JavaScript
  • XML/HTML
  • CSS
  • SPARQL
  • HTML mixed-mode
  • HTML+PHP mixed-mode (courtesy of Yahoo!)
  • Python (by Timothy Farrell)
  • Lua (by Franciszek Wawrzak)
  • Ruby (by Michal Hantl, unfinished)
  • SQL (by John Benediktsson)
  • PLSQL (by Peter Raganitsch)
  • diff (courtesy of Liran Nuna)
  • Groovy (by eXo Platform)
  • C# (by Boris Gaber and Christopher Buchino)
  • OmetaJS (by Eric KEDJI)
  • Scheme (by Danny Yoo)

假如你有項目需要線上代碼編輯,還等什嗎?CodeMirror,絕對是你最好的選擇。

為了尊重作者對自由的嚮往,請在使用前認真閱讀以下License,並嚴格尊重作者的聲明:

http://github.com/marijnh/CodeMirror/blob/master/LICENSE

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.