最近搜索


没有最近搜索

Inline code formatting in Zendesk communities



已于 2017年8月09日 发布

Code blocks are highlighted HTML <pre> blocks in Zendesk community forums posts and comments, but it always comes with a line break.

Would it be possible to support <pre> without a line break (aka inline pre) from Zendesk side? If we copy-paste the inline pre from some other place, it works great, but no way to add it in Zendesk's editor.

Thanks!


13

29

29 条评论

Hi Nicole,


Would also like to request Code Blocks / Inline Code Blocks for the text editor in the Knowledge Base. We're also a tech company and not being able to easily add some inline code block using say ```This``` has become a huge hassle for us.

0


Hi Adam -

Yes, there are several things on the roadmap around improving the community. I can't speak to code blocks specifically, but I will check in with the product managers to see if this is something under consideration for the near future.

0


Hi Nicole,

We just migrated our Discourse forum into help center community, we are a technical company and have noticed that we and our customers need code blocks within the community GUI. 

Do you know if there is anything on the roadmap to make community a more robust platform?

0


Hi Peter - 

Are you looking for code blocks in your Community or in your Knowledge Base? 

If you're looking for it in the Community, no further developments are planned for the Communities platform. 

If you're looking for it for your Knowledge Base, please contribute to this thread: 

Help Center article editor needs to support (easy) source code formatting 

1


Adding my request to this chain. We are setting up developer documentation and the ability to add code blocks would help immensely.

1


I simply edited the html to add this style to code blocks:

 style="background-color: #eee;border: 1px solid #999;display: block;padding: 20px;"

 

0


Hey Tyler - 

If you're looking for this functionality for Community posts, it is not planned to be implemented. If you're looking for it for Knowledge Base posts, you should contribute to this thread: 

Help Center article editor needs to support (easy) source code formatting 

0


Not to be entirely salty here, but how can so much time pass and even the most basic of documentation formatting functionality remain unactivated in TinyMCE, a web-based editor that is WELL KNOWN to support these features? You've got a number of people here who are asking that a minor change is made to the ZD Guides editor interface (count me among them) to surface functionality that TinyMCE offers already! How can you just ignore that? 

Please. I've got a ton of documentation that I need to migrate into ZD and it's gotta be readable and functional, and so far, the less-than-minimal formatting options available just won't cut it. I'm using Gist to get code blocks and there's just NOTHING else!! 

The only reason someone doesn't do something that would benefit others is that NOT doing it benefits them. 

I truly hope that this isn't true. 

0


I am aware of this method. However, this it is labor intensive and really only makes sense for large blocks of code. As a technical company, we use code snippets and 'preformatted' text all throughout our docs. Adding a gist for each one of these is simply a poor use of time. We simply need a button for preformatted, and ideally, one for longer code blocks.

0


Hey Thomas and Maria - 

One solution for how to do this is via Github Gists. How to use them is explained in this Community thread:

Putting code into articles

The appropriate Product Feedback thread for you to add your comments and votes to is this one: 

Help Center article editor needs to support (easy) source code formatting 

0


请先登录再写评论。

找不到所需的内容?

新建帖子