anchor.diff:    </div>
     <% elsif (f[:type] == "application/xml") || (f[:type] == "text/html") %>
     <% begin
  -     contents = render html: f[:contents]
  +     contents = render_textarea f[:contents]
        type = if (f[:name].ends_with? ".svg") then "SVG"
               elsif (f[:name].ends_with? ".html") then "HTML"
               else "XML" end %>
  
positive.code: <% @@MAX_LINES = 10000 %>
  <%= javascript_include_tag "pdfjs-dist/build/pdf.min.js" %>
  <%= javascript_include_tag "pdfjs-dist/web/pdf_viewer.js" %>
  <style>
  .embed-replaced { vertical-align: baseline; display: inline-block; }
  .embed-image { }
  
negative.code:           <p>Could not render <%= f[:name] %> &mdash; content was too long</p>
            <p><%= link_to "Download #{f[:name]}", f[:link] %></p>
            <textarea style="display: none;" data-source="<%= f[:link] %>"
                      id="contents_<%= i %>_<%= root %>"><%= render_textarea f[:contents] %></textarea>
          </div>
        </div>
        <% else %>
        <div>
          <textarea class="sourceCode" data-lang="markdown"
                    data-source="<%= f[:link] %>"
                    id="contents_<%= i %>_<%= root %>"><%= render_textarea f[:contents] %></textarea>
        </div>
        <% end %>
      </div>
  