adobe/brackets — pull request #2160 by gruehle (2012-11-20 00:45:02+00:00)
Title: Support Live Highlight from inline editors

CSSDocument now listens for `activeEditorChange` events, and hooks up cursor change handlers to any active editor that is associated with the same document.

This pull request also includes a few small code cleanups:
* Remove the unused `inspector` parameter from the `CSSDocument()` constructor
* Factor the highlight update code out of `onCursorActivity()` so it can be called independently
* When initializing `_relatedDocuments`, make sure none of the related documents are duplicates of `_liveDocument`.