anchor.diff:            <%= text_field_tag 'gist_file_names[]', nil, :placeholder => 'name this file...', :class => 'span8' %>
           </div>
           <div class="form-inputs">
  -          <%= text_area_tag 'gist_file_bodies[]', nil, :rows => 15, :class => 'span8' %>
  +          <%= text_area_tag 'gist_file_bodies[]', nil, :rows => 15, :class => 'span8 gist-file-body', :id => "gist_file_bodies_new" %>
           </div>
           <span class="pull-right remove-file"><a href="#">Remove this&hellip;</a></span><br/>
         </div>
  
positive.code:               <%= text_field_tag 'gist_file_names[]', gist_file.name, :placeholder => 'name this file...', :class => 'span8' %>
              </div>
              <div class="form-inputs">
                <%= text_area_tag 'gist_file_bodies[]', gist_file.body, :rows => 15, :class => 'span8' %>
              </div>
              <span class="pull-right remove-file"><a href="#">Remove this&hellip;</a></span><br/>
            </div>
  
negative.code:     </div>
    <% end %>
  
    <script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
    <script>//<![CDATA[
    $('.gist-file-body').each(function (i, textarea) {
      var $textarea = $(textarea).hide();
      var id = $textarea.attr('id') + '_editor';
      $('<div />')
        .attr('id', id)
        .css({ width: 770, height: 300, position: 'relative' })
        .insertAfter(textarea);
  
      var editor = ace.edit(id);
      editor.setTheme('ace/theme/monokai');
      editor.getSession().setValue($textarea.val());
      editor.getSession().on('change', function () {
        $textarea.val(editor.getSession().getValue());
      });
    });
    //]]></script>
  
  <% else %>
  
  Please <%= link_to 'sign in', signin_path %> to create a gist.
  