Insert Code Snippets

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

Xavier Lopez avatar
Written by Xavier Lopez
Updated over a week ago

Follow the steps below for a quick and efficient way to make most coding compatible to be displayed "as-is" in Trainual's WYSIWYG text editor. With a good understanding of this process, you can easily create technical training that looks both visually appealing and is user-friendly.

๐Ÿ‘‰ 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 and subject content access levels.

  • If you are unfamiliar with editing a step, please review the "Create & Add Content To A Step" help article.

  • Need to integrate external content into your step using HTML? You'll need the "Code View" help article instead of this one. ๐Ÿ˜‰


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 error messages in-app. This is why the process outlined below is recommended!

  1. Navigate to Pastebin.com.

  2. Paste your coding into the text box under "New Paste."

  3. Select your "Optional Paste Settings," if applicable.

  4. Click the "Create New Paste" button next and then the "Embed" button on the second page you're directed to.

  5. Copy the embed code under the header "Iframe Embedding."

    Watch these first 5 steps in action! ๐Ÿ‘‡

  6. Navigate to the step you want to update in Trainual.

  7. Click the three dots in the upper right-hand corner of the text editor.

  8. Hit the "< >" symbol from the second menu to open "Code View."

  9. Paste your embed coding in this view, then click the "< >" symbol again to close this page and be navigated back to the default text editor view.

  10. Double-check that everything is displaying correctly, and voilร ! You've successfuly completed this process.

    Watch these last 5 steps in action!๐Ÿ‘‡


Learn more about adding external resources in steps:


๐ŸŒป SEOs: CodeView, HTML, HyperText, Program, Programming, Syntax, Share, Sharable, Tech, Technology, Industry, Field, Programmer, Program

Did this answer your question?