adobe/brackets — pull request #923 by peterflynn (2012-05-22 23:10:25+00:00)
Title: Enable JS inline edit (& comment/uncomment) in HTML script blocks

Add Editor.getModeForSelection() API for getting the mode at a specific location in the document (in some formats like HTML, mode may vary depending on position due to nested languages). Useful utility for many text-edit commands. Only supports "htmlmixed" and "php" mixed modes currently (see TODO in code).

Improves several parts of Brackets:
* CSSInlineEditor: simplifies code
* EditorCommandHandlers: comment/uncomment now supports JS in HTML script blocks (in both HTML & PHP files)
* JavaScriptInlineEditor: now supports JS in HTML script blocks (in both HTML & PHP files)

Also includes two small docs cleanups in InlineWidget.