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)

defect

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)
Whiteboard: [sourceeditor]
filter on pegasus
Priority: -- → P3
Whiteboard: [sourceeditor] → [sourceeditor][orion]
Moving to Source Editor component. Filter on CHELICERAE.
Component: Developer Tools → Developer Tools: Source Editor
Blocks: 792320
Blocks: 799483
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
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.