Closed
Bug 687168
Opened 13 years ago
Closed 11 years ago
Source Editor should expose a way to add/remove a CSS class to a range of text
Categories
(DevTools :: Source Editor, defect, P3)
DevTools
Source Editor
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cedricv, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sourceeditor][orion])
To provide in-text diagnostics, we should have an API to allow styling ranges of text, eg. something like:
addRangeClass(aClassName, aOffsetStart, aOffsetEnd)
removeRangeClass(aClassName, aOffsetStart, aOffsetEnd)
Updated•13 years ago
|
Whiteboard: [sourceeditor]
Updated•13 years ago
|
Whiteboard: [sourceeditor] → [sourceeditor][orion]
Comment 2•12 years ago
|
||
Moving to Source Editor component.
Filter on CHELICERAE.
Component: Developer Tools → Developer Tools: Source Editor
Comment 3•11 years ago
|
||
Closing as FIXED: CodeMirror allows us to add overlays over text that can be used to style ranges of text. (This is how search highlighting works in CodeMirror.) Once we have an actual feature request, we can write addon that leverages overlays.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•