Within Teamwork, you can add code samples to certain project items such as notebooks, that use the WYSIWYG editor.
For messages and comments, the code sample option is located on the right side of the toolbar.
In the notebook editor, click the options button on the right of the toolbar to access the code sample option.
This will open a modal where you 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:
When you click Save, the code sample will be added to the content area.
Once you publish the notebook or create the message or comment, the code sample will be added in a dedicated section with the relevant code tags highlighted.
For more information, see: Using the WYSIWYG Editor in Notebooks