Show HN: Behave.js – Coding Behaviors for textarea elements
jakiestfu.github.com
jakiestfu.github.com
Otherwise, great work...and it behaves reasonably well even on iOS
You like this? On-demand editing services: chris@edithero.com
Clickable: http://www.edithero.com/
Your comment was funny and provided value (now I know about your service). Well played.
Getting scolded by a 3 karma account was fun :)
To wit: this is a lawsuit of choice, initiated by a plaintiff (backed by the EFF) who had material briefly taken-down by a DMCA notification. The studio didn't sue: it only sent a take-down, then was itself sued. The studio doesn't appear to be seeking damages, even though the alleged-infringing video has now been up for years (post-counter-notify, with more than 1.2 million views). The studio just wants the take-down honored and the lawsuit dismissed.
I believe the author picked the cross hatched texture background to match the rest, as well as the font and the muted retro green and orange-red, so it's not like it was a mere copy/paste job, either. More like (apart from the name pun) Austin Powers is just another ingredient, like the colour to paint with, the texture, the font, etc.
Further--this is a personal belief so take it cum grano salis--if one releases a blockbuster film, one of the (intended!) effects is having its iconography engrained in the public's mind and culture. Saying you cannot use imagery that has been force-fed into the public consciousness at all, is like getting hit by a fire hose and being told you're not allowed to drink or wash with the water. And I had this thought, having to fear being punished for using a certain icon to communicate your ideas, is a lot (but not exactly, I do hope you can see the similarities though) like what the Danish cartoonist had to fear when drawing Muhammed. (let me repeat: there's a lot of differences between the situations, but also an eerie similarity)
Anyway, it's a really great library, I'm looking forward to having an excuse to use it.
Also wanted to ask why do you think that ace is a pain? I agree that it's big, but seems to work ok?
I can't speak for the GP, but my problem with ACE et al. is that they replace the textarea with their own HTML structure (e.g. a div for every line). I understand the reason why, but it means they have to reimplement all the textbox behaviour and they never get it completely right.
For example: when I double-click on a word in the textbox I'm writing this in, and then middle-click somewhere else, the word gets pasted there.
In ACE, it pastes a different text in a different location.
ACE is brilliant if you want to a full-fledged text editor. But it's an overkill if all you need is a normal textarea with some colours.
https://github.com/jakiestfu/Behave.js/blob/master/behave.js...
I built something similar for keeping indentation/bullets/lists on new lines to assist with Markdown in an ordinary textarea -> http://jamiebicknell.github.com/Markdown-Helper/
ps: long time lurker, first time poster.
Not sure how to repeat it every time but weird artifact quirk if one scrolls to the bottom on iPad safari & scrolls back up: http://i.imgur.com/Hby2ZsL.jpg
http://meyerweb.com/eric/css/edge/complexspiral/demo.html
The Internet Archive pegs that page to October 2001. That's like 4 or 5 Internets ago.
Suggestion: Big notice somewhere saying "NO JQUERY DEPENDENCY". Things are so bad these days I assume jQuery dependency until I see something stating otherwise!
Sidenote: The name conflicts a bit with http://kennknowles.github.com/behave.js/ - Not sure if that matters to you.
Indent Issue:
Type in at least 3 lines, highlight the middle lines using shift+down-arrow, tab(indent), notice the line below the highlighted lines indents too.
hgjj]{return}{return}{return}{return}
and it just beachballed. I had to force quit the browser. Happened the second time I tried it too.
The issue is with the ']', and ONLY after I hit the return key. The entire page becomes unresponsive afterwards.
Can we also get Elastic tabstops? http://nickgravgaard.com/elastictabstops/
> var editor = Behave({
Is it a constructor or not?
The second case is incorrect. The function assigns to "this", which would be undefined in strict mode, or the global object. Very bad either way.
Remember kids: objects are your friend.
foo(1,
2,
3)I switched about a year ago and I am very pleased.
EDIT: This shows it off better: http://www.sublimetext.com/
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 parameters are required, what does optional parameters do.It's basically a richer version of <span title="text" alt="text"</span>