header-logo
Learn how to use Wix to build your site and business.
Design and manage your site using intuitive Wix features.
Manage subscriptions, plans and invoices.
Run your business and connect with members.
Learn to purchase, connect or transfer a domain to your site.
Get tools to grow your business and web presence.
Boost your visibility with SEO and marketing tools.
Get advanced features to help you work more efficiently.
Find solutions, learn about known issues or contact us.
placeholder-preview-image
Improve your skills with our courses and tutorials.
Get tips for web design, marketing and more.
Learn to increase organic site traffic from search engines.
Build a custom site using our full-stack platform.
Get matched with a specialist to help you reach your goals.
placeholder-preview-image

Wix Forum: Adding a Code Snippet to a Forum Post

1 min
A forum is a great way to teach others about code. You can start a discussion or open a Q&A forum to take questions and provide answers to code problems. You can add code to any of your forum posts. Make sure to add it using Code Snippet so that it displays properly.

Adding a code snippet to a forum post:

  1. Go to your forum in your live site.
  2. Click Create New Post or click Edit on an existing post.
  3. Add a post title.
  4. Add the post content, including the code.
  5. Highlight the code. 
  6. Click the Code Snippet iconto format the code.
  7. When you're ready, click Publish.