<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>subtleGradient comments on TextMate JavaScript Prototype &amp; Script.aculo.us</title>
    <link>http://subtlegradient.com/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>subtleGradient comments</description>
    <item>
      <title>"TextMate JavaScript Prototype &amp; Script.aculo.us": comment by Thomas Aylott</title>
      <description>&lt;p&gt;This post was posted using &lt;a href="http://bradchoate.com/"&gt;Brad Choate&amp;#8217;s Bloggin Bundle&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 17 Jul 2006 12:05:09 PDT</pubDate>
      <guid>http://subtlegradient.com/articles/2006/07/17/textmate-javascript-prototype-script-aculo-us#comment-212</guid>
      <link>http://subtlegradient.com/articles/2006/07/17/textmate-javascript-prototype-script-aculo-us#comment-212</link>
    </item>
    <item>
      <title>"TextMate JavaScript Prototype &amp; Script.aculo.us" by admin</title>
      <description>&lt;p&gt;Howdy. I&amp;#8217;ve just been fiddling around with the official Subversion and JavaScript bundles.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.flickr.com/photos/thomas_aylott/191739927/" title="Prototype &amp;amp; Script.aculo.us TextMate screenshot" style="float:right"&gt;&lt;img src="http://static.flickr.com/71/191739927_90bcc9badc_o.png" width="453" height="291" alt="Prototype &amp;amp; Script.aculo.us.png" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;h3&gt;Prototype, Script.aculo.us &amp;#38; JavaScript&lt;/h3&gt;


	&lt;p&gt;I just added a new bundle for &lt;a href="http://macromates.com/svn/Bundles/trunk/Bundles/JavaScript%20Prototype%20&amp;#38;%20Script_aculo_us.tmbundle/"&gt;Prototype &amp;#38; Script.aculo.us&lt;/a&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;The original bundle was created by Justin Palmer in the &lt;a href="http://encytemedia.com/blog/articles/2006/01/03/textmate-vibrant-ink-theme-and-prototype-bundle"&gt;Textmate Vibrant Ink Theme and Prototype Bundle&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;Martin Str&amp;ouml;m added a bunch of handy snippets in his &lt;a href="http://burnfield.com/martin/2006/07/14/textmate-prototype-scriptaculus-bundle/"&gt;TextMate Prototype &amp;#38; Scriptaculous Bundle&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;For the longest time I&amp;#8217;ve had my &lt;em&gt;Javascript Extras Bundle&lt;/em&gt; in &lt;a href="http://textmate.svn.subtlegradient.com/"&gt;my personal Svn Repo&lt;/a&gt;, where I&amp;#8217;ve had a great hodgepodge or random carp.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Since Martin announced his new bundle in the TextMate Mailing List I&amp;#8217;ve decided that it&amp;#8217;s time our stuff is used by the masses &lt;em&gt;(whether they like it or not)&lt;/em&gt;. The new &lt;a href="http://macromates.com/svn/Bundles/trunk/Bundles/JavaScript%20Prototype%20&amp;#38;%20Script_aculo_us.tmbundle/"&gt;Prototype &amp;#38; Script.aculo.us&lt;/a&gt; is in the official TextMate subversion repository.&lt;/p&gt;


	&lt;h3&gt;How to get it?&lt;/h3&gt;


	&lt;p&gt;You&amp;#8217;ll have to check out the latest version of the &lt;a href="http://macromates.com/svn/Bundles/trunk/Bundles/JavaScript.tmbundle/"&gt;Javascript bundle&lt;/a&gt;, Then you need to checkout the &lt;a href="http://macromates.com/svn/Bundles/trunk/Bundles/JavaScript%20Prototype%20&amp;#38;%20Script_aculo_us.tmbundle/"&gt;Prototype &amp;#38; Script.aculo.us bundle&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;&lt;del&gt;Or just &lt;a href="#"&gt;&lt;img src="http://subtlegradient.com/stuff/zipicon.gif" class="zipicon" /&gt;download a zip of them all here&lt;/a&gt;&lt;/del&gt; &lt;ins&gt;disabled this download since it&amp;#8217;s like &lt;em&gt;way&lt;/em&gt; old&lt;/ins&gt;&lt;/p&gt;


	&lt;p&gt;&lt;del&gt;That zip contains subversion checkouts of each bundle. All you have to do to keep them up to date is run &lt;code&gt;svn up *&lt;/code&gt; on them.&lt;/del&gt;&lt;/p&gt;


	&lt;h3&gt;What&amp;#8217;s it got?&lt;/h3&gt;


	&lt;h4&gt;Snippets galore&lt;/h4&gt;


	&lt;p&gt;&lt;em&gt;Martin Str&amp;ouml;m&lt;/em&gt; created about 72 snippets:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Ajax.PeriodicalUpdater&lt;/li&gt;
		&lt;li&gt;Enum.each&lt;/li&gt;
		&lt;li&gt;Event.observe&lt;/li&gt;
		&lt;li&gt;Field.…&lt;/li&gt;
		&lt;li&gt;Form.…&lt;/li&gt;
		&lt;li&gt;Effects.…&lt;/li&gt;
		&lt;li&gt;Position.…&lt;/li&gt;
		&lt;li&gt;&lt;strong&gt;etc&lt;/strong&gt;, &lt;em&gt;etc&lt;/em&gt;, etc…&lt;/li&gt;
	&lt;/ul&gt;


	&lt;h4&gt;JavaScript Language Syntax&lt;/h4&gt;


	&lt;p&gt;There were some things that I had in the language syntaxes that were more generic and should be put in the main JavaScript language. So i did that. I also put in a better indent pattern preference.&lt;/p&gt;


	&lt;h4&gt;Prototype &amp;#38; Script.aculo.us Language Syntax&lt;/h4&gt;


	&lt;p&gt;The language syntax was originally created by &lt;em&gt;Justin Palmer&lt;/em&gt;. &lt;em&gt;Martin Str&amp;ouml;m&lt;/em&gt; added some &lt;a href="http://www.joehewitt.com/software/firebug/" title="FireBug Javascript Debugger Extension for FireFox"&gt;FireBug&lt;/a&gt; keywords and some other stuff to the language. I,&amp;nbsp;&lt;em&gt;Thomas Aylott&lt;/em&gt; added support for:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;class.instance.constructor&lt;/li&gt;
		&lt;li&gt;string based property.function&amp;#8217;s&lt;/li&gt;
		&lt;li&gt;a way to guess what is a regular variable&lt;/li&gt;
		&lt;li&gt;Much better Symbol list support for &lt;span class="caps"&gt;OOP&lt;/span&gt; style javascript.&lt;/li&gt;
		&lt;li&gt;other random tweaks &amp;#38; carp&lt;/li&gt;
	&lt;/ul&gt;


	&lt;h4&gt;Bracketed Language Syntax&lt;/h4&gt;


	&lt;p&gt;This is a wrapper for the main Prototype &amp;#38; Script.aculo.us language.
It has nested scopes for round, curly &amp;#38; square brackets. It also has a special curly bracket scope for JavaScript functions.
I also updated my &lt;a href="http://macromates.com/svn/Bundles/trunk/Themes/Brilliance%20Black.tmTheme" title="In the official TextMate themes"&gt;Brilliance Black theme&lt;/a&gt; to fully support these crazy new scopes.&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;Curly&lt;/strong&gt; brackets, groups and delimiters&lt;/li&gt;
		&lt;li&gt;&lt;strong&gt;Round&lt;/strong&gt; brackets, groups and delimiters&lt;/li&gt;
		&lt;li&gt;&lt;strong&gt;Square&lt;/strong&gt; brackets, groups and delimiters&lt;/li&gt;
		&lt;li&gt;&lt;strong&gt;Curly Function&lt;/strong&gt; brackets, groups and delimiters&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;The bracketed wrapper is really meant to be for Javascript what the &lt;span class="caps"&gt;XHTML&lt;/span&gt; strict syntax is for xhtml.
The idea is that it should better understand the larger parts of the language.
The first useful upshot of all that is the fancy coloring possibilities that it allows.
But you could use the scopes to make function block specific snippets or what-have-you.&lt;/p&gt;


	&lt;p&gt;The reason I don&amp;#8217;t just use it for prototype or javascript itself is that it reduces parsing performance on large and complex scripts (like the prototype library).
Other than that, it doesn&amp;#8217;t hurt anything.&lt;/p&gt;


	&lt;p&gt;Maybe I should move it into Experimental?&lt;/p&gt;


	&lt;p&gt;There&amp;#8217;s way more to be said for collaboration and sharing and how wonderful and great it all is, but everyone stopped reading half way through so there&amp;#8217;s not much point in me continuing on about it ;)&lt;/p&gt;

</description>
      <pubDate>Mon, 17 Jul 2006 09:01:00 PDT</pubDate>
      <guid>&lt;a href="/articles/2006/07/17/textmate-javascript-prototype-script-aculo-us"&gt;TextMate JavaScript Prototype &amp; Script.aculo.us&lt;/a&gt;</guid>
      <link>&lt;a href="/articles/2006/07/17/textmate-javascript-prototype-script-aculo-us"&gt;TextMate JavaScript Prototype &amp; Script.aculo.us&lt;/a&gt;</link>
    </item>
  </channel>
</rss>
