VisualEditor: Support the <code> tag as a text annotation
Closed, ResolvedPublic

Description

VisualEditor should support adding and editing the code tag (<code></code>).


Version: unspecified
Severity: enhancement

Change 74563 had a related patch set uploaded by Jforrester:
De-alienate <code>foo</code> blocks (code element)

https://gerrit.wikimedia.org/r/74563

Change 74563 merged by jenkins-bot:
De-alienate <code>foo</code> blocks (code element)

https://gerrit.wikimedia.org/r/74563

With the latest master, <code> blocks are no longer alienated (so you can edit their contents and copy them), but we haven't added the user interaction tools to set or unset the styling.

Change 76074 had a related patch set uploaded by Esanders:
'CodeScript' => 'Code'

https://gerrit.wikimedia.org/r/76074

Change 76077 had a related patch set uploaded by Esanders:
Code annotation

https://gerrit.wikimedia.org/r/76077

Change 76074 merged by jenkins-bot:
'CodeScript' => 'Code'

https://gerrit.wikimedia.org/r/76074

Change 76077 merged by jenkins-bot:
Code annotation button

https://gerrit.wikimedia.org/r/76077

This is now done, but marked as "experimental" (so it will show up on MediaWiki.org and the test wikis, but not on other production wikis like the Wikipedias). This is mostly because we don't yet have a proper design for how to have lots of different text annotations (currently we're tracking bugs to create an additional eight on top of the four that now exist including this one). Once we've got a design for that, we'll switch it out of experimental mode, but I'll mark this as fixed for now.

Add Comment