Share, Revise, and Publish Formatted Code Snippets

Good news for your community developers! Now there’s an easy way to share and talk about code in a community feed. Code snippets let developers add code samples with syntax highlighting in the publisher’s rich text editor. Your developers can also post code snippets using Chatter REST API and Chatter in Apex. Code snippets are available in communities based on the Napili template.

Enable Show Code Snippet Button in the user profile or through a permission set. The button appears with the other rich text options.