Closed Bug 780246 Opened 13 years ago Closed 13 years ago

Kuma: Editor - Add a key shortcut to toggle <pre> mode

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sheppy, Unassigned)

Details

This would help engineers that don't like toolbars insert code samples more quickly.
How would they choose a language without the toolbar?
Well, they don't *have* to choose a language; you can have a bare <pre> block (indeed, we use these a lot in reference documentation; our syntax sections are not syntax highlighted because it just clutters up the function prototype). But we could use the context menu on <pre> blocks to choose a language...
Cool -- what keyboard shortcut would you like?
I don't have one in mind. We didn't have one on MindTouch; this is a New Feature Request.
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/d3db4c9027fd1e2a9dbf83a2f8a66c344fe7b898 fix bug 780246 - Add keyboard shortcut for PRE https://github.com/mozilla/kuma/commit/4c7bcf443b0bac088340c34147af445ec1a90c58 Merge pull request #493 from darkwing/pre-shortcut-780246 fix bug 780246 - Add keyboard shortcut for PRE
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Is the shortcut CTRL+P? Looks like Firefox overrides this with "Print".
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
We override Firefox's while in edit mode. It works for me anyway.
Works for me in Firefox too.
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Now it is working for me. Not sure what I did wrong a second ago.
Version: Kuma → unspecified
Component: Website → Landing pages
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.