   scrollToScreenPosition: (screenPosition, options) ->
     @scrollToPixelPosition(@pixelPositionForScreenPosition(screenPosition), options)
 
-  # Scrolls the editor to the given pixel position.
+  # Public: Scrolls the editor to the given pixel position.
   #
   # pixelPosition - An object that represents a pixel position. It can be either
-  #                  an {Object} (`{row, column}`), {Array} (`[row, column]`), or {Point}
+  #                 an {Object} (`{row, column}`), {Array} (`[row, column]`), or
+  #                 {Point}.
   # options - A hash with the following keys:
-  #          center: if `true`, the position is scrolled such that it's in the center of the editor
+  #             center - if `true`, the position is scrolled such that it's in
+  #                      the center of the editor
   scrollToPixelPosition: (pixelPosition, options) ->
     return unless @attached
     @scrollVertically(pixelPosition, options)
     @scrollHorizontally(pixelPosition)
 
-  # Highlight all the folds within the given buffer range.
+  # Public: Highlight all the folds within the given buffer range.
   #
   # "Highlighting" essentially just adds the `fold-selected` class to the line's
   # DOM element.

    @updateLayerDimensions()
    @requestDisplayUpdate()

  splitLeft: ->
    pane = @getPane()
    pane?.splitLeft(pane?.copyActiveItem()).activeView

  splitRight: ->
    pane = @getPane()
    pane?.splitRight(pane?.copyActiveItem()).activeView

  splitUp: ->
    pane = @getPane()
    pane?.splitUp(pane?.copyActiveItem()).activeView

  splitDown: ->
    pane = @getPane()
    pane?.splitDown(pane?.copyActiveItem()).activeView

  # Retrieve's the `EditorView`'s pane.
  #
  # Returns a {Pane}.
  getPane: ->

        index++
    left

  measureToColumn: (lineElement, tokenizedLine, screenColumn) ->
    left = oldLeft = index = 0
    iterator = document.createNodeIterator(lineElement, NodeFilter.SHOW_TEXT, TextNodeFilter)
