Skip to content
Snippets Groups Projects
  1. Oct 16, 2012
  2. Oct 15, 2012
  3. Oct 04, 2012
  4. Oct 03, 2012
  5. Sep 26, 2012
  6. Sep 25, 2012
  7. Sep 20, 2012
  8. Sep 19, 2012
  9. Sep 18, 2012
  10. Sep 14, 2012
  11. Sep 13, 2012
    • Marijn Haverbeke's avatar
      Use a set of object, rather than a huge closure, to store state · 022abb40
      Marijn Haverbeke authored
      Huge refactor of lib/codemirror.js. Most code is now top-level (in the
      module wrapper function) rather than inside of the CodeMirror
      constructor sharing a huge amount of state.
      
      A CodeMirror instance now has (non-public) `display`, `view`, and
      `options` properties that describe its state. The display holds the
      editor's DOM structure and associated state, view represents a view on
      a document, containing `doc`, `sel`, `overwrite`, `scrollTop`, and
      `scrollLeft` properties. The `doc` itself contains its history.
      
      (It is not yet possible to switch views and documents in and out of an
      editor, but this does start clearing the way towards that.)
      022abb40
  12. Sep 12, 2012
  13. Sep 11, 2012
  14. Sep 10, 2012
  15. Sep 05, 2012
  16. Sep 03, 2012
  17. Aug 31, 2012
    • Marijn Haverbeke's avatar
      Change the way highlighting information is updated · 846d043e
      Marijn Haverbeke authored
       - Background parsing now never goes past the visible part of the
         document.
      
       - We only store style information for lines that are actually visible
         (and then keep it cached).
      
       - When the document changes, background highlighting always
         re-highlights from the change to the end of the visible part.
      
       - Gets rid of compareState mode methods and the hairy heuristic that
         tried to simulate it when absent.
      
       - The onHighlightComplete callback was removed, since it no longer
         really applies -- the document is only fully parsed when scrolled
         to its end.
      
      This should help preserve memory (a huge document will no longer
      immediately have parser state and highlighting information built up
      for all lines, but only for the parts that you look at), and removes
      the pathological case when you, for example, are typing at the top of
      a huge XML document, and opening or closing a tag causes a whole
      re-highlight to cascade all the way to the bottom because the
      compareState will detect a change.
      
      Issue #688
      846d043e
    • Marijn Haverbeke's avatar
      Modify the vertical sizing model once more · 288504cd
      Marijn Haverbeke authored
      Fixes a problem where the editor would always be 30 pixels smaller
      than its set height.
      
      The height is now set on the outer wrapper DIV again, and some
      height: 100% tricks are used to make height information flow
      both ways (inside-out in demo/resize.html mode, outside-in in
      normal, fixed-height mode).
      
      Closes #775
      288504cd
  18. Aug 28, 2012
  19. Aug 23, 2012
  20. Aug 21, 2012
  21. Aug 17, 2012
  22. Aug 15, 2012
Loading