CodeCompletion / Code Highlighting

edited February 2012 in Enyo 2
Is there anything like this that helps with coding ?

Comments

  • I would recommend Komodo Edit which is free, has syntax highlighting. It does offer code completion but I've only got it working for jQuery - haven't tried for Enyo yet.

    http://www.activestate.com/komodo-edit.
  • I've been using Sublime Text 2 as my editor, and the latest version does some completion, although mainly on variable and method names defined in your own code. If you use it, I highly recommend installing the SublimeLinter plugin to get automatic JSHint support.
  • I love Komodo for Python, but I've not yet been able to figure out how to get it's completion and hinting to work for Enyo. That'd be awfully nice, but I figure Enyo is incredibly complex. I do use Komodo for everything that I don't have a specific IDE for, though, so yes, I use it on Enyo.

  • You might be interested in haxe JS, which has full code completion for Enyo:

    http://www.haxejs.org/externs/enyo/

    It currently supports Enyo 1.0, but should support Enyo 2.0 once the widget set has been released. Some time ago, I made a screencast that demonstrates how well it works:

    http://www.joshuagranick.com/videos

    You would need an editor which supports haxe in order to take full advantage of the code completion support. The best editor IMHO is FlashDevelop, but I have also used bundles for Sublime Text 2, TextMate, gedit, vim and it looks like there is some kind of plugin for Komodo Edit as well.
  • I use PhpStorm, which is one of the IDEs from JetBrains (http://www.jetbrains.com/). It has JavaScript code completion which works with your own code. It will also autocomplete code from the Enyo framework if you set up your projects correctly. It has an existing webOS plugin for deploying from within the IDE and there will soon be another webOS plugin based off that one that does debugging within the IDE as well.
  • Sublime Text 2 seems to be awesome! I've been working with TextMate for the last few weeks which is also pretty good.
  • Thanks for all this ideas! I installed now Sublime Text 2 and I have to admit that it is really an awesome editor.
  • I also really like that Sublime Text 2 is cross platform -- I've got it installed on both my Windows and Mac OS X laptops.
  • @Dragongears Is there anything special about setting up PhpStorm for using it with Enyo? I never used PhpStorm before.
  • >> Vim. I started on a syntax file and code completion. Not been able to get much done yet I'm afraid. Someone else might have some Vim Enyo stuff in the works too? Community added support for Javascript, html5 and css3 is pretty good in Vim.
  • I've also been using Sublime 2, but haven't gotten to the point where I have any build scripts/macros/whatever they are called.

    Does anyone have any they'd like to share?
  • edited February 2012
    I'd start by installing the 'package control' plugin: http://wbond.net/sublime_packages/package_control
    From there you can easily install a large number of other plugins. For starters, the SublimeLinter plugin for code validation that Ben mentioned before is priceless.
  • Great, thanks for that!
  • @ffelgenh Aside from installing the webOS-Storm plugin, nope.
  • Emacs with js2-mode is another choice without code complete
  • It currently supports Enyo 1.0, but should support Enyo 2.0 once the widget set has been released. Some time ago, I made a screencast that demonstrates how well it works:

    http://www.joshuagranick.com/videos
    This looks like a very cool path. Love the code completion goodness. Questions:

    [1] Assuming FlashDevelop as an IDE, what sorts of debugging are available for haxe JS Enyo running [a] in a browser [b] on a webOS device [c] on an Android device ??

    [2] For porting a haxe JS Enyo app to Android, is the PhoneGap route the same as with a JS Enyo app ??

    Thanks for all your work in the haxe universe and connecting it to webOS and Enyo.

    -- stan


  • [2] For porting a haxe JS Enyo app to Android, is the PhoneGap route the same as with a JS Enyo app ??
    Yes. The haxe code gets "compiled" into JS code.
  • I'm using Netbeans which can complete everything in the enyo namespace (starting with "enyo.") but has no support for object members and methods. I would love to have code completion for components/kinds.
  • It currently supports Enyo 1.0, but should support Enyo 2.0 once the widget set has been released. Some time ago, I made a screencast that demonstrates how well it works:

    http://www.joshuagranick.com/videos
    haha - I was watching your video and tried to click the close button on your window when I wanted to get out full screen. Now I feel really dumb. :P

    Anyhow - Programmer's Notepad 2 is a pretty nice free program but only good for code coloring/highlighting and not much else.
  • [1] Assuming FlashDevelop as an IDE, what sorts of debugging are available for haxe JS Enyo running [a] in a browser [b] on a webOS device [c] on an Android device ??
    Answering my own question: looks like standard JS debugging tools are what one must use. Someone please correct if there's indeed a way to step through enyo-flavored haxe code from the haxe source viewpoint.
  • Personally, I use Espresso with my own webOS.sugar for auto-completion. I haven't had a chance to update it for Enyo 2.0, but since most of the core components are the same it should work pretty well.
Sign In or Register to comment.