Skip to content
adrocknaphobia edited this page May 17, 2012 · 3 revisions

General Questions

  • What would be the difference between embedding Brackets and embedding CodeMirror into a web application?
    • CodeMirror: just editing,
    • Brackets: file management, server APIs (github), extensions+inline
  • How does the editor work?
    • CodeMirror, pushing changes back into CodeMirror.
  • Are there apps for iPad/Android?
    • Not now, will wrap in PhoneGap in the future
  • Is it at all possible to run it on web right now, or has noone written that?
    • They tried it once a while ago. Tricky because dependent on Chromium version, might not work with other browsers or look good. Also file API.
  • Is there a video that shows the cool demo’d features (inline CSS/HTML/JS)?
    • Not yet.
  • Are there any plans to use right-click/context menu?
    • Yes. We hope to add context-menu support by Sprint 11.
  • Q: How to save as?
    • Not yet.
  • Q: Can you drag+drop files around? (how to put file in other folder?)
    • Not yet.

Customizing Brackets

  • Q: How do you change indenting/spacing?
    • Edit CodeMirror, no UI for it yet.
    • (But if you do it, change white:true for your own code)
this._codeMirror = new CodeMirror(container, {
    electricChars: false,   // we use our own impl of this to avoid CodeMirror bugs; see _checkElectricChars()
    indentUnit: 2,
    indentWithTabs: false,
    lineNumbers: true,
    matchBrackets: true,
    extraKeys: codeMirrorKeyMap
});
  • Q: What library is $ from?
    • jQuery
  • Q: Where do you put a new HTML file when you’re testing brackets changes?
    • Make a new window, new folder, reload
Clone this wiki locally