Gutenberg: Add inline <code> tag to formattingControls on RichText API

Created on 6 Aug 2018  路  2Comments  路  Source: WordPress/gutenberg

Is your feature request related to a problem? Please describe.
On technical blogs (like CatsWhoCode, SmashingMagazine, ...), the html CODE tag is often used in "inline" to put forward keyword language, a command, etc.

Describe the solution you'd like
Can add a "code" button

Describe alternatives you've considered
Add it via the RichText API, so you can easily add the code tag in a paragraph

Thanks !

[Feature] Rich Text [Type] Enhancement

Most helpful comment

I'd find this very handy too, for reference though:

  • You can use a backtick markdown style and it will auto-convert to a code tag
  • The classic editor doesn't have a code tag button, I've always had a plugin that adds it, so this would be a new feature if it reached gutenberg

All 2 comments

I'd find this very handy too, for reference though:

  • You can use a backtick markdown style and it will auto-convert to a code tag
  • The classic editor doesn't have a code tag button, I've always had a plugin that adds it, so this would be a new feature if it reached gutenberg

We've added the backtick (wrap some text with `) shortcut, and a keyboard shortcut (access+x). This is the same what the old editor has. A button remains plugin territory.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mtias picture mtias  路  83Comments

Pikkals picture Pikkals  路  98Comments

smp303 picture smp303  路  98Comments

jasmussen picture jasmussen  路  173Comments

melchoyce picture melchoyce  路  95Comments