Closed Bug 723459 Opened 13 years ago Closed 13 years ago

Add an API to SourceEditor to retrieve the character(s) used for indentation

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 13

People

(Reporter: cedricv, Assigned: cedricv)

References

Details

(Keywords: dev-doc-complete, Whiteboard: [sourceeditor])

Attachments

(1 file)

eg. getIndentationString() => returns "\t", " ", " " or whatever the user or the editor is set to use for indentation. Useful for generation of text inside an editor.
Blocks: 723460
Attached patch patch v1 (deleted) — Splinter Review
Attachment #593787 - Flags: review?(mihai.sucan)
Comment on attachment 593787 [details] [diff] [review] patch v1 Review of attachment 593787 [details] [diff] [review]: ----------------------------------------------------------------- Patch looks good. Thanks!
Attachment #593787 - Flags: review?(mihai.sucan) → review+
Whiteboard: [sourceeditor]
Version: unspecified → Trunk
Whiteboard: [sourceeditor] → [sourceeditor][land-in-fx-team]
Blocks: 723651
Blocks: 723820
Whiteboard: [sourceeditor][land-in-fx-team] → [sourceeditor][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [sourceeditor][fixed-in-fx-team] → [sourceeditor]
Target Milestone: --- → Firefox 13
Please document the new getIndentationString() method added in Firefox 13. Thank you!
Keywords: dev-doc-needed
Already documented but now labeled as new in Firefox 13. https://developer.mozilla.org/en/JavaScript_code_modules/source-editor.jsm#getIndentationString%28%29 Listed on Firefox 13 for developers.
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: