Syntax Highlighter Element
Last Update: August 30, 2025
The Avada Syntax Highlighter Element allows you to provide code snippets in a variety of different languages in a copyable, embeddable format directly on your website. Aside from the 4 pre-set style options, it comes with several customization options to control all colours, borders, text, line wrapping, code copying, and more.
Watch the video below for a visual overview of the Element, view the Avada Syntax Highlighter Element page for live examples, and read on to see the complete list of options.
How To Use The Syntax Highlighter Element
To start, add the Avada Element to your desired column. The element has two tabs: General and Design. On the General tab, the first thing to do is to insert the code you wish to highlight. Directly below that, you can choose from any of the 4 preset style options for the snippet. Then select the coding language that the snippet is in (this assists with correct styling).
There are also several options to show or hide line numbers and to allow the user to copy the code to the clipboard. The Design tab offers styling options to customize the element further.
Element Options
Note: The Default setting will use the global settings assigned for this element in your Options > Avada Builder Elements > Syntax Highlighter Element section.