Closed Bug 717219 Opened 13 years ago Closed 12 years ago

Source Editor should highlight the current line in HTML documents

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 13

People

(Reporter: past, Assigned: msucan)

References

Details

(Keywords: dev-doc-complete, Whiteboard: [sourceeditor][orion][fixed-in-fx-team])

Attachments

(1 file, 2 obsolete files)

The script debugger sometimes displays HTML documents for inline scripts. In these cases we need to have SE_setMode do setHighlightCaretLine(true), as it does for JS and CSS files.
Thanks for the bug report!


(In reply to Panos Astithas [:past] from comment #0)
> The script debugger sometimes displays HTML documents for inline scripts. In
> these cases we need to have SE_setMode do setHighlightCaretLine(true), as it
> does for JS and CSS files.

The highlighter for HTML mode does not have the setHighlightCaretLine(true) method, unfortunately. The approach there is different...
Assignee: nobody → mihai.sucan
Attached patch proposed patch (obsolete) — Splinter Review
This changes the way the current line highlight is implemented, as suggested by the Orion team. Now it works with the HTML mode as well.

Please let me know if this is fine with you.
Attachment #592244 - Flags: review?(rcampbell)
Status: NEW → ASSIGNED
Depends on: 707987
Blocks: 712982
Comment on attachment 592244 [details] [diff] [review]
proposed patch

looks good.
Attachment #592244 - Flags: review?(rcampbell) → review+
Attached patch some fixes (obsolete) — Splinter Review
Found a minor bug while working on the rest of the patches in my queue. Fixed.

Thanks for the r+!
Attachment #592244 - Attachment is obsolete: true
Attachment #593577 - Attachment is obsolete: true
We need to document the new highlightCurrentLine option. Thanks!
Keywords: dev-doc-needed
Comment on attachment 595782 [details] [diff] [review]
[in-fx-team] rebased patch

Landed:
https://hg.mozilla.org/integration/fx-team/rev/0815f202f7f1
Attachment #595782 - Attachment description: rebased patch → [in-fx-team] rebased patch
Whiteboard: [sourceeditor][orion] → [sourceeditor][orion][fixed-in-fx-team]
Comment on attachment 595782 [details] [diff] [review]
[in-fx-team] rebased patch

backedout due to test failure:
https://hg.mozilla.org/integration/fx-team/rev/b18c023badad
Attachment #595782 - Attachment description: [in-fx-team] rebased patch → rebased patch
Whiteboard: [sourceeditor][orion][fixed-in-fx-team] → [sourceeditor][orion][backedout]
Comment on attachment 595782 [details] [diff] [review]
[in-fx-team] rebased patch

Landed:
https://hg.mozilla.org/integration/fx-team/rev/aa44ffe9db74
Attachment #595782 - Attachment description: rebased patch → [in-fx-team] rebased patch
Whiteboard: [sourceeditor][orion][backedout] → [sourceeditor][orion][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/aa44ffe9db74
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: