Adding Syntax Highlighted Code in Webcourses@UCF
The Syntax Highlighter tool allows you to embed code in your course with syntax highlighting, like what you may see in an integrated development environment (IDE).
How to Use the Syntax Highlighter Tool
- In the course navigation, click the Pages tab.
- Click on View All Pages if it is available to see all pages in your course
- Create a new page or select an existing page to add your code to.
- Click the Edit button.
- Using your cursor, select where you would like to add your code to.
- Click the
Plugins icon in the toolbar of the editor, then select View All. - Search for Syntax Highlighter in the All Apps pop-up window and select the Syntax Highlighter tool. (After doing this for the first time, the Syntax Highlighter tool will be displayed in the plugins menu).
- Under the Select Language heading, select the programming language your code is in.
- The Syntax Highlighter tool has support for most widely-used programming languages: Bash, C, C++, C#, CSS, Docker, HTML, Java, JavaScript, JSON, LessCSS, MySQL, PHP, Python, Python 3, Ruby, SASS, SCSS, SQL, and TypeScript
- Once you’ve correctly selected the programming language, paste your code into the text area that reads “Paste your code here…”
- Click the Continue to Preview button.

- Confirm that the code is highlighted correctly. If not, select Edit. Otherwise, select Insert.
- Note: The code will display with syntax highlighting only after submitting. The syntax highlighting will not be visible when inside the Canvas editor

- Click the Save button to save the changes you’ve made to your page.
