---
title: Insert Code Snippets
description: Learn how to visually display code snippets for your team to access from your Trainual steps.
---

[Skip to content](https://help.trainual.com/en/articles/6105691-insert-code-snippets#main-content)

English

Show submenu for translations

![Trainual Logo (White).png\]](https://help.trainual.com/hs-fs/hubfs/Logo/Trainual%20Logo%20(White).png?height=39&name=Trainual%20Logo%20(White).png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations

 👋 Hi! Need help fast? Ask the Bot (bottom right ↘)

- There are no suggestions because the search field is empty.

1. [Help center](https://help.trainual.com/en?hsLang=en)
2. [Enhancing training with media & embeds](https://help.trainual.com/en/enhancing-training-with-media-embeds?hsLang=en)
3. [Formatting & links](https://help.trainual.com/en/enhancing-training-with-media-embeds?hsLang=en#formatting-links)

# Insert Code Snippets

## Learn how to visually display code snippets for your team to access from your Trainual steps.

A "Code Snippet" refers to a concise segment of reusable source code, machine code, or text, enabling programmers to circumvent the need for repetitive coding while engaged in routine programming tasks.

 

![](https://help.trainual.com/hs-fs/hubfs/Knowledge%20Base%20Import/the-it-crowd-it-crowd-1.gif?width=300&name=the-it-crowd-it-crowd-1.gif)

👉 Before you start:

- This feature option is available on all Trainual plans.
- Content creators will have access to this feature. For more specifics around which pieces of content your team can see and update, review their **[permission levels](https://help.trainual.com/en/articles/5589497-permission-levels?hsLang=en)** and **[subject content access](https://help.trainual.com/en/articles/5575360-manage-subject-content-access?hsLang=en)** levels.
- If you are unfamiliar with editing a step, please review the "**[Create & Add Content To A Step](https://help.trainual.com/en/articles/5578224-create-add-content-to-a-step?hsLang=en)**" help article.

 

---

 

 To insert and display code snippets in your Trainual content:

It can feel challenging to add certain code snippets from certain websites into Trainual due to the inclusion of specific technical language, such as script tags for example, which often causes **[saving failed](https://help.trainual.com/en/articles/5811498-saving-failed?hsLang=en)** error messages in-app. This is why the process outlined below is recommended!

 

1. **Navigate** to the step where you want to add a code snippet.
2. **Press** the \</\> button to the far right of the toolbar.
3. **Add** the code you would like to display.
4. Your step will auto-save! 🎉
   
    
   
   **Watch this in action below! 👇**
   
    
   
   ![](https://help.trainual.com/hubfs/Knowledge%20Base%20Import/Screen+Capture+on+2023-10-05+at+14-41-54-1.gif)

---

 

 Learn more about adding external resources in steps:

- Insert **[YouTube videos](https://help.trainual.com/en/articles/4523305-insert-youtube-videos-using-quick-embeds?hsLang=en)** using Trainual's quick embeds feature.
- Incorporate **[multimedia file elements](https://help.trainual.com/en/articles/5575036-upload-files?hsLang=en)** to increase your training engagement.

---

🌻 **SEOs:** CodeView, HTML, HyperText, Program, Programming, Syntax, Share, Sharable, Tech, Technology, Industry, Field, Programmer, Program

- [Training suite foundations](https://help.trainual.com/en/training-suite-foundations?hsLang=en#main-content)

    - [Learning & certifications](https://help.trainual.com/en/training-suite-foundations?hsLang=en#learning-certifications)
    - [Community & resources](https://help.trainual.com/en/training-suite-foundations?hsLang=en#community-resources)
- [Operations suite hub](https://help.trainual.com/en/operations-suite-hub?hsLang=en#main-content)

    - [About operations suite](https://help.trainual.com/en/operations-suite-hub?hsLang=en#about-operations-suite)
    - [Operations toolkit](https://help.trainual.com/en/operations-suite-hub?hsLang=en#operations-toolkit)
- [Performance suite hub](https://help.trainual.com/en/performance-suite-hub?hsLang=en#main-content)

    - [About performance suite](https://help.trainual.com/en/performance-suite-hub?hsLang=en#about-performance-suite)
    - [Performance toolkit](https://help.trainual.com/en/performance-suite-hub?hsLang=en#performance-toolkit)
- [Account & user settings for training suite](https://help.trainual.com/en/account-user-settings-for-training-suite?hsLang=en#main-content)

    - [Account setup & management](https://help.trainual.com/en/account-user-settings-for-training-suite?hsLang=en#account-setup-management)
    - [My profile & preferences](https://help.trainual.com/en/account-user-settings-for-training-suite?hsLang=en#my-profile-preferences)
    - [Notifications & emails](https://help.trainual.com/en/account-user-settings-for-training-suite?hsLang=en#notifications-emails)
- [Users, groups & access for training suite](https://help.trainual.com/en/users-groups-access-for-training-suite?hsLang=en#main-content)

    - [Adding & managing users](https://help.trainual.com/en/users-groups-access-for-training-suite?hsLang=en#adding-managing-users)
    - [Groups & group management](https://help.trainual.com/en/users-groups-access-for-training-suite?hsLang=en#groups-group-management)
    - [Permissions & access control](https://help.trainual.com/en/users-groups-access-for-training-suite?hsLang=en#permissions-access-control)
    - [Roles, responsibilities & org structure](https://help.trainual.com/en/users-groups-access-for-training-suite?hsLang=en#roles-responsibilities-org-structure)
- [Building & structuring training content](https://help.trainual.com/en/building-structuring-training-content?hsLang=en#main-content)

    - [Content builder basics](https://help.trainual.com/en/building-structuring-training-content?hsLang=en#content-builder-basics)
    - [Creating subjects, documents & pages](https://help.trainual.com/en/building-structuring-training-content?hsLang=en#creating-subjects-documents-pages)
    - [Creating tests](https://help.trainual.com/en/building-structuring-training-content?hsLang=en#creating-tests)
    - [Creating other content types](https://help.trainual.com/en/building-structuring-training-content?hsLang=en#creating-other-content-types)
    - [Templates & starter content](https://help.trainual.com/en/building-structuring-training-content?hsLang=en#templates-starter-content)
    - [AI & smart-assist tools](https://help.trainual.com/en/building-structuring-training-content?hsLang=en#ai-smart-assist-tools)
- [Organizing & managing training content](https://help.trainual.com/en/organizing-managing-training-content?hsLang=en#main-content)

    - [Arranging content](https://help.trainual.com/en/organizing-managing-training-content?hsLang=en#arranging-content)
    - [Content settings & requirements](https://help.trainual.com/en/organizing-managing-training-content?hsLang=en#content-settings-requirements)
    - [Content publishing, sharing & visibility](https://help.trainual.com/en/organizing-managing-training-content?hsLang=en#content-publishing-sharing-visibility)
    - [Collaborating on content](https://help.trainual.com/en/organizing-managing-training-content?hsLang=en#collaborating-on-content)
    - [Content updates & cleanup](https://help.trainual.com/en/organizing-managing-training-content?hsLang=en#content-updates-cleanup)
- [Training tools & experience](https://help.trainual.com/en/training-tools-experience?hsLang=en#main-content)

    - [Accessing your training](https://help.trainual.com/en/training-tools-experience?hsLang=en#accessing-your-training)
    - [Encouraging training completions](https://help.trainual.com/en/training-tools-experience?hsLang=en#encouraging-training-completions)
    - [AI help & search](https://help.trainual.com/en/training-tools-experience?hsLang=en#ai-help-search)
- [Enhancing training with media & embeds](https://help.trainual.com/en/enhancing-training-with-media-embeds?hsLang=en#main-content)

    - [Videos & screen recordings](https://help.trainual.com/en/enhancing-training-with-media-embeds?hsLang=en#videos-screen-recordings)
    - [Images, audio & GIFs](https://help.trainual.com/en/enhancing-training-with-media-embeds?hsLang=en#images-audio-gifs)
    - [Content & media from other tools](https://help.trainual.com/en/enhancing-training-with-media-embeds?hsLang=en#content-media-from-other-tools)
    - [Files & forms](https://help.trainual.com/en/enhancing-training-with-media-embeds?hsLang=en#files-forms)
    - [Formatting & links](https://help.trainual.com/en/enhancing-training-with-media-embeds?hsLang=en#formatting-links)
- [Training reports & data](https://help.trainual.com/en/training-reports-data?hsLang=en#main-content)

    - [Monitoring training progress](https://help.trainual.com/en/training-reports-data?hsLang=en#monitoring-training-progress)
    - [Progress & completion data](https://help.trainual.com/en/training-reports-data?hsLang=en#progress-completion-data)
    - [Recovery, history & results](https://help.trainual.com/en/training-reports-data?hsLang=en#recovery-history-results)
- [Troubleshooting](https://help.trainual.com/en/troubleshooting?hsLang=en)
- [Billing & plans for training suite](https://help.trainual.com/en/billing-plans-for-training-suite?hsLang=en#main-content)

    - [Subscription basics](https://help.trainual.com/en/billing-plans-for-training-suite?hsLang=en#subscription-basics)
    - [Modifying your subscription](https://help.trainual.com/en/billing-plans-for-training-suite?hsLang=en#modifying-your-subscription)
- [Integrations](https://help.trainual.com/en/integrations?hsLang=en#main-content)

    - [Automation & workflows](https://help.trainual.com/en/integrations?hsLang=en#automation-workflows)
    - [HRIS & payroll systems](https://help.trainual.com/en/integrations?hsLang=en#hris-payroll-systems)
    - [Team productivity tools](https://help.trainual.com/en/integrations?hsLang=en#team-productivity-tools)
    - [SSO & authentication](https://help.trainual.com/en/integrations?hsLang=en#sso-authentication)
    - [Content, data & developer tools](https://help.trainual.com/en/integrations?hsLang=en#content-data-developer-tools)
- [About Trainual](https://help.trainual.com/en/about-trainual?hsLang=en#main-content)

    - [Evaluating Trainual](https://help.trainual.com/en/about-trainual?hsLang=en#evaluating-trainual)
    - [Industry compliance FAQs](https://help.trainual.com/en/about-trainual?hsLang=en#industry-compliance-faqs)
    - [Partnerships](https://help.trainual.com/en/about-trainual?hsLang=en#partnerships)
    - [Make an inquiry](https://help.trainual.com/en/about-trainual?hsLang=en#make-an-inquiry)

[![Trainual](https://help.trainual.com/hs-fs/hubfs/Logo%20purple%20medium-1.png?width=250&height=70&name=Logo%20purple%20medium-1.png "Trainual")](http://trainual.com)

Trainual.com Help Center

Copyright © 2025, Trainual