代码(Code)

Context: frontend-dev-bookmarks / User Interface Components

Code viewers and editors designed for embedding inside a website.


  • Behave.js: Behave.js is a lightweight library for adding IDE style behaviors to plain text areas, making it much more enjoyable to write code in.
  • CodeMirror: CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with a number of language modes and addons that implement more advanced editing functionality.
  • Intelligist: A jQuery plugin that makes it easy to share and demo code in-page, using GitHub gists.
  • Prism: Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind.
  • Rainbow: Rainbow is a code syntax highlighting library written in Javascript. It was designed to be lightweight, easy to use, and extendable. It is completely themable via CSS.
  • ansi_up: A javascript library that converts text with ANSI terminal codes into colorful HTML
  • tabIndent.js: tabIndent.js enhances a textarea, so that the tab key no longer takes you to the next input, but rather, acts like a text editor by inserting a tab character.