Editor: Code formatting options for either block or selection



Posted Oct 18, 2021

Currently, selecting the Code block option will apply that formatting (using <pre>) to the full text until the next break in paragraph. 

So even though I've only selected THIS word before hitting the button, the whole line is formatted

To apply this to just a selection of text, we need to open the source code editor and apply <code> tags manually.

We'd love to see a dropdown from the Code block button with options that read something like "Block" and "Selection", where "Block" applies <pre> tags and "Selection" applies <code> tags. 


2

2

2 comments

Official

image avatar

Amisha Sharma

Zendesk Product Manager

Hello Matt Smith and Lee, Johnny, Thanks for providing feedback and sharing your request. We will look into this request.

0


My organization would love this too. To keep the request in this thread and use Zendesk's request formatting:

Feature Request Summary: 

Zendesk Help Center should have an easy way to apply inline <code> editing to a selection of text.

Description/Use Cases: 

We use code formatting all the time in other products with text editors, like Confluence and Slack, to do things show short lines of code that don't need to be in their own line or highlight UI copy in our product so that users can quickly skim the article.

Business impact of limitation or missing feature:

This would save our Help Center team's time in a few different ways:

  1. We wouldn't have had to see if this was a default formatting option/add custom styling
  2. Article editors wouldn't have to go into the source code to make a simple formatting change. This time adds up the more articles we have to edit (especially since we're migrating thousands of articles from a different platform).

I know that it's not critical, but feature parity with industry-standard products that have text editors (the aforementioned Confluence and Slack) would be incredibly helpful and time-saving.

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post