Behave.js

Languages and libraries

javascript library

SHOW HN2013

180points
72comments
#85of 1,739 in 2013
Top 5%of 2013 by points

How HN took it

MixedNo clear lean

7 positive, 20 neutral or asking, 8 mixed, 8 critical, out of 43 comments about the project. Thread score +0.01.

Execution: 1 for, 6 againstIdea: 3 for, 0 againstDesign: 2 for, 0 againstPerformance: 0 for, 2 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Simple, elegant, lightweight alternative to heavy editors like Ace

    From 4 comments
    • I like it very much. Simple and elegant solution. Will try to find a use for this lib.
      BOSH on HN
    • Thanks so much for the LDT link, it's exactly what I was looking for (and thought impossible). I can't speak for the GP, but my problem with ACE et al. is that they replace the…
      TomasSedovic on HN
    • This is great! I removed Ace because it was too heavy for my purpose. Indent Issue: Type in at least 3 lines, highlight the middle lines using shift+down-arrow, tab(indent),…
      bink-lynch on HN
    • This is awesome. I'm using http://ace.ajax.org/ right now in production and it's a huge heavyweight pain (but still the best thing out there). If only this had syntax…
      nbashaw on HN
  • Useful for Stack Overflow style tab handling

    From 1 comment
    • I like this a lot. I really wish they'd add the tab functionality to Stack Overflow. I can't count the times I've tabbed out of the text box there.
      Permit on HN

Objections

  • Infinite loop crashes on certain bracket and newline input

    From 3 comments
    • It absolutely crashed Firefox 18.0.1 under Mac. I typed hgjj]{return}{return}{return}{return} and it just beachballed. I had to force quit the browser. Happened the second time I…
      user24 on HN
    • Chromium 24.0.1302.0 (162733) on OS X 10.8.2: Same issue as above, although I just had to close out the tab instead of forcing the browser to close. The issue is with the ']',…
      chewmieser on HN
    • Try to type in: {}]]] and press Enter...
      solarbunny on HN
  • Undo and indentation behave incorrectly

    From 3 comments
  • No syntax highlighting

    From 2 comments
    • Great landing page. Just add syntax highlighting and it'll be perfect.
      hilti on HN
    • It is cool but it will more cool if you add highlighting.
      justplay on HN

Requests

  • Syntax highlighting

    From 3 comments
    • Great landing page. Just add syntax highlighting and it'll be perfect.
      hilti on HN
    • It is cool but it will more cool if you add highlighting.
      justplay on HN
    • Ideally, highlighting should be pluggable into the textarea from another source.
      Narretz on HN
  • Autocomplete and hover hints

    From 2 comments
    • Now please add mouse-hover hint box, dropdown list for auto completion and I am sold
      est on HN
    • Okay, suppose this line: ``` result = someFunction(param1, param2='ok') ``` mouse over to `someFunction`, a small box shows brief description of function, what it does, how many…
      est on HN
  • Configurable auto-expansion per language

    From 1 comment
    • Auto expanding for ', [, { (, " is great, but this should be configurable on a language basis. In other languages it's not uncommon to have things like `http://uri.com` or…
      Ygg2 on HN
  • Keep indentation on new lines and backspace deleting an indent level

    From 2 comments
    • You should have the option to make backspace delete a full level of indentation, if soft tabs are on.
      evincarofautumn on HN
    • Keeping the indentation level on new lines would be nice too.
      MasterScrat on HN
  • Elastic tabstops

    From 1 comment
    • Ohh... shiny! Can we also get Elastic tabstops? http://nickgravgaard.com/elastictabstops/
      DoubleCluster on HN

Questions

  • Is the constructor called with new?

    From 1 comment
    • > var editor = new Behave({ > var editor = Behave({ Is it a constructor or not?
      tantalor on HN
  • Does it work with keyboard navigation and accessibility?

    From 1 comment
    • Question: What does this do for accessibility if navigating with a keyboard? How would one genuinely tab out of the field? Suggestion: Big notice somewhere saying "NO JQUERY…
      WickyNilliams on HN

Alternatives named

  • Ace editor

    From 2 comments
    • This is awesome. I'm using http://ace.ajax.org/ right now in production and it's a huge heavyweight pain (but still the best thing out there). If only this had syntax…
      nbashaw on HN
    • Maybe you'll like http://kueblc.github.com/LDT/examples/generic.html? but if you fix undo, add bracket matching, etc it will become huge too. Also wanted to ask why do you think…
      chr1 on HN
  • CodeMirror

    From 1 comment
  • Sublime Text 2

    From 1 comment
    • Have you looked at Sublime Text 2? http://www.sublimetext.com/2 I switched about a year ago and I am very pleased. EDIT: This shows it off better: http://www.sublimetext.com/
      bink-lynch on HN
  • LDT

    From 1 comment
    • Maybe you'll like http://kueblc.github.com/LDT/examples/generic.html? but if you fix undo, add bracket matching, etc it will become huge too. Also wanted to ask why do you think…
      chr1 on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/5114055)