hunk.code_window: var utils = require('../utils');
   var domEach = utils.domEach;
   var cloneDom = utils.cloneDom;
   var isHtml = utils.isHtml;
   var slice = Array.prototype.slice;
   /**
    * Create an array of nodes, recursing into arrays and parsing strings if
    * necessary.
    *
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit: var domhandler = require('domhandler');
  
hunk.file_path: lib/api/manipulation.js
hunk.type: add
file: /*global document */
  (function () {
    var source = document.getElementsByClassName('prettyprint source linenums');
    var i = 0;
    var lineNumber = 0;
    var lineId;
    var lines;
    var totalLines;
    var anchorHash;
  
    if (source && source[0]) {
      anchorHash = document.location.hash.substring(1);
      lines = source[0].getElementsByTagName('li');
      totalLines = lines.length;
  
      for (; i < totalLines; i++) {
        lineNumber++;
        lineId = 'line' + lineNumber;
        lines[i].id = lineId;
        if (lineId === anchorHash) {
          lines[i].className += ' selected';
        }
      }
    }
  })();
  