Within Teamwork Projects, you can add code samples to certain project items, such as notebooks, that use the WYSIWYG editor.

When editing a notebook, select the select the code icon from the editor menu bar at the top of the notebook.


This will open a modal where you can  can then add your code sample to the code field in the Insert Code Sample modal.

Use the Language dropdown at the top of the modal to choose your preferred coding language. The supported languages are:

  • HTML/XML
  • JavaScript
  • CSS
  • PHP
  • Ruby
  • Python
  • Java
  • C
  • C#
  • C++

When you click Ok, the code sample will be added to the content area of your notebook. Once you have published the notebook, the code sample will be added in a dedicated section with the relevant code tags highlighted.


Code samples can also be added to messages, replies, and comments on your projects.

For more information, see: Using the WYSIWYG Editor in Notebooks