Re: [textadept] Javascript Module

From: Robert <ro....at.web.de>
Date: Fri, 20 May 2011 10:19:18 +0200

Nice work! ...and a feature request :-)

Support for chaining (which can even happen on multiple lines):

$('#jqdt2').find('li.funny')
  .css('backgroundColor','#0ff')
.end()
.find('p > strong')
  .css('backgroundColor','#ff0')

Robert

On Fri, May 20, 2011 at 8:12 AM, Brian Schott <briancsch....at.gmail.com> wrote:
> I've uploaded the first version of my javascript module here:
> https://bitbucket.org/SirAlaran/ta-javascript/
>
> This includes limited Adeptsense-based autocompletion for the built-in
> Javascript objects, DOM document, DOM element, and jQuery. On the
> subject of jQuery support, I overrode get_symbol for this module with
> a version that uses buffer:brace_match to get autocompletion when you
> type something like this:
>
> $("#identfier").
>
> Be sure to add the following line to your modules/hypertext/init.lua file:
>
> require "javascript"
>
>
> I may enhance this later to depend on my "c-style" module so that it
> gains extra features like auto-indenting braces. (This code has been
> out for a while on the TA wiki. If you write code in a curly-brace
> language of any sort, I suggest trying it out)
>
> --
> You received this message because you are subscribed to the Google Groups "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
>
>
Received on Fri 20 May 2011 - 04:19:18 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:07:55 EST