Help Center Article Editor needs to support (easy) source code formatting

64 Comments

  • Siegfred Winkler
    Comment actions Permalink

    What could be prioritized would be the ability to do the same formatting in Helpcenter as the editor of Support Tickets. Much needed are the inline-codes. Actually, it doesn't quite make sense, that these two editors have different editing options.

    0
  • mgz
    Comment actions Permalink

    Best solution I found is to use Prism.js
    https://prismjs.com/
    Download the code from the Prismjs.com website. 
    Then Zendesk Admin can inject the code of Prism.js and Prism.css files to the Zendesk Theme of their knowledgebase. 
    As Admin go to the Knowledgebase. Edit Theme -> Edit Code
    Open file: script.js. Insert the prism.js file at the end. click Publish
    Open file: style.css Insert the prism.css at the end of the file. click Publish.
    Now, you can insert code snippets using the guidelines from prism.js website.

    However, it would be great if Zendesk dev team would incorporate Prism.js natively. Especially because the library was released under open source MIT license. 
    https://github.com/PrismJS
    The effort seems minimal. Maybe Product Manager can help here ?

    0
  • Bryan Matias
    Comment actions Permalink

    +1. ZD Support supports something similar, would be great to have that in the KB.

    1
  • mgz
    Comment actions Permalink

    The code block from Zendesk is not the same. it doesn't highlight code according to what programming language is used. all it does is to arrange the code in a distinct section. Hard to read the code in this way, especially when the code section is long.
    also, there is no option to switch seeing a different code when a different programming language is used, 

    1

Please sign in to leave a comment.

Powered by Zendesk