Pieter Humphrey is a Consulting Product Marketing Manager responsible for Spring Product Marketing. Pieter comes from BEA/Oracle with long history of developer tools, Java EE, application server and other Java middleware as both a marketing guy and sales engineer since 1998. Pieter is a DZone MVB and is not an employee of DZone and has posted 54 posts at DZone. You can read more from them at their website. View Full User Profile

Announcing Scripted: A JavaScript editor from VMware

10.11.2012
| 1188 views |
  • submit to reddit
Location: 
Palto Alto, CA
The first version of the Scripted code editor has been released this week on github and is also downloadable as a package from VMware. Although Scripted is a general purpose code editor, the initial focus is building a great JavaScript editing experience. Scripted itself is built entirely in JavaScript and HTML/CSS. It is a browser-based editor that runs locally on a developer's machine with a Node.js instance being used to serve the editor code and perform the editor operations. The only pre-req for running Scripted is that you have a recent version of Node.js (0.6 or later) installed. Check it out now in 6 minute screencast!

Scripted offers JavaScript developers the lightweight editor as a free GitHub project.

  • Fast startup, lightweight, responsive
  • Syntax highlighting for JavaScript, HTML and CSS.
  • Errors and warnings:
  • JSLint is integrated to provide error/warning markers on JavaScript code.
  • AMD and CommonJS module resolution: there is basic resolution where unresolved references will be marked as errors.
  • Basic content assist for HTML, CSS
  • Advanced content assist for JavaScript, driven by a type inferencing engine which is aware of AMD/CommonJS module dependencies and also uses JSDoc comments to help it understand the code.
  • Hovers: hovering over a JavaScript identifier will bring up the inferred type signature.
  • Navigation: press F8 on an identifier (that the inferencer has recognized) and the editor will navigate to the declaration. This also works on module identifiers (e.g. in define() clauses)
  • Formatting: JSbeautify is integrated
  • Sidepanel: alongside the main editor a sidepanel can be opened – currently this can be used to host a second editor.
  • Key binding to external command: Key bindings in the editor can invoke external commands (less, mvn, etc)

We decided to open source early to get feedback. If you want to help us shape the editor, please join in the discussion. There is a scripteddev google group for discussing it and a jira issuetracker for logging bugs, enhancement requests and voting on existing issues to ensure they are prioritized appropriately. If you want to start hacking on the codebase yourself we are definitely open to submissions – see the github page for more information.

0
Published at DZone with permission of Pieter Humphrey, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)