Behave.js
Languages and libraries
javascript library
SHOW HN2013
How HN took it
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 HNThanks 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 HNThis 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 HNThis 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 HNChromium 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 HNTry to type in: {}]]] and press Enter...
solarbunny on HN
Undo and indentation behave incorrectly
From 3 comments
When you undo, it's undoing it very weirdly.
apathetic on HNYou should have the option to make backspace delete a full level of indentation, if soft tabs are on.
evincarofautumn on HNNope (Chrome 24.0.1312.56 on OS X 10.6.8).
MasterScrat on HN
No syntax highlighting
From 2 comments
Great landing page. Just add syntax highlighting and it'll be perfect.
hilti on HNIt 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 HNIt is cool but it will more cool if you add highlighting.
justplay on HNIdeally, highlighting should be pluggable into the textarea from another source.
Narretz on HN
Autocomplete and hover hints
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 HNKeeping 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 HNMaybe 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
Use CodeMirror (http://codemirror.net/) for this, or Ace
thousande on HN
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