Mozilla Labs has launched a new project called Bespin that provides a browser-based framework for interactive code editing. The prototype includes a simple IDE with a built-in command system, a basic project management interface, and an editor that supports syntax highlighting and other features.
The Bespin framework is distributed under an open source license and can be deployed by users on any server. It uses standards-based Web technologies and doesn’t rely on features that are specific to the Mozilla ecosystem, so you will eventually be able to use it in any standards-compliant Web browser. It does use some cutting-edge standards, however, so you will need Firefox 3 or a WebKit nightly build to test it today.
The editor’s internal components are written in JavaScript and are very easy to extend. Developers can add additional editor commands and syntax highlighting support for other programming languages. Out of the box, the current protoytpe comes with highlighting support for CSS, JavaScript, and HTML. Bespin uses several third-party frameworks, including Prototype and Scriptaculous. The editable text area is rendered on a Canvas element.
The lead developers behind the Bespin project are Ben Galbraith and Dion Almaer, the co-founders of Ajaxian, a developer-oriented blog about emerging JavaScript technologies and advanced Web development.
“As we strive to evolve the Open Web as a robust platform for application development, we believe in the potential for web-based code editors to increase developer productivity, enable compelling user experiences, and promote the use of open standards,” Galbraith and Almaer wrote in a statement at the Mozilla Labs website. “Just as Mozilla enables massive innovation by making Firefox open on many levels, we hope to do the same with Bespin by developing an extensible framework for Open Web development. We’re particularly excited by the prospect of empowering Web developers to hack on the editor itself and make it their own.”
A technical overview of the prototype and additional details about the Bespin vision are provided in a blog entry at Ajaxian. You can test the demo and see an introductory video presentation at the Bespin website.

Loading comments...