Switch to side-by-side view

--- a/Allura/allura/templates/repo/file.html
+++ b/Allura/allura/templates/repo/file.html
@@ -16,6 +16,27 @@
 <a href="{{blob.commit.url()}}log/">
   <b data-icon="{{g.icons.history.char}}" class="ico {{g.icons.history.css}}" title="History"> </b> History
 </a>
+{% endblock %}
+
+{% block extra_js %}
+{{ super() }}
+<script type="text/javascript">(function() {
+  var hash = window.location.hash.substring(1);
+  if (hash != '' && hash.substring(0, 9) == 'codeline_') {
+    $('#' + hash).css('background-color', '#ffff99');
+  }
+
+  $('.code_block').each(function(index, element) {
+    $(element).bind('click', function() {
+      var hash = window.location.hash.substring(1);
+      if (hash != '' && hash.substring(0, 9) == 'codeline_') {
+        $('#' + hash).css('background-color', 'transparent');
+      }
+      $(element).css('background-color', '#ffff99');
+    });
+  });
+}());
+</script>
 {% endblock %}
 
 {% block content %}