Syntax Highlighter Element

A Great Way To Show Off Your Code

Buy Avada
Discover More
Prebuilt Websites

Highly Flexible

The Syntax Highlighter Element is our solution that allows you to provide code snippets in a variety of different languages in a copiable, 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.

Copy to Clipboard

Premade Syntax Highlighting Styles

The syntax highlighting element comes with four pre-set visual styles to choose from to suit most if not all websites “look and feel”. There are two light themes and two dark themes to choose from.

Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard

Select Your Code Language

Do you want a bit more control over your highlighted syntax on your website? The syntax highlighting element lets you select the code language you are using.

Code Line Control Options

Choose if your code shows line numbers next to it or not, and with our Line Wrapping option you can choose if lines of code continue with a horizontal scroll bar or break into a new line so no scrolling is needed.

With Line Numbers

Copy to Clipboard

Without Line Numbers

Copy to Clipboard

With Horizontal Scroll

Copy to Clipboard

Without Horizontal Scroll

Copy to Clipboard

Copy to Clipboard Option For Easy Code Sharing

Do you want to share your code with your visitor? The Syntax Highlighter “Copy to Clipboard” option makes it so easy! Share an add banner, call to action, widget or other code with your visitors to embed on their own website! This option sits neatly in the top right corner of the box and with just a click it will copy the entire block of code. You can even customize what it says or disable this option entirely.

Copy to Clipboard

Custom Styling

We offer several customization options that allow you to control exactly how your code & block look. You can control the overall font size of the code, the border size, color and style of the entire box, the background color of the box, overall margins and even the line number text and background color. Make it yours!

Example 1

Copy to Clipboard

Example 2

Copy to Clipboard

Example 3

Copy to Clipboard

The Avada: Website Builder

CREATE THE LAYOUTS YOU WANT

The Avada Website Builder gives you the ability to design and build any layouts for your Avada website. Choose to customize the Footer, single posts, Portfolio posts, archives, search results, and more. With the power of Layouts, Layout Sections, Conditional Logic, Layout Section Elements, and Avada’s massive range of Design Elements, the sky is the limit. Custom design a global footer or only apply the custom Footer to a single page or post.

avada-theme-builder
EXPLORE THE AVADA WEBSITE BUILDER

Header Builder

Whatever your design requirements are, getting the job done could not be any easier. You can decide how many columns to use when designing and building the header, with a vast array of styling options to perfect the layout. What’s more, is you can now choose to create and display as many different headers as you want for different pages and posts throughout your website.

Footer Builder

Free from any constraints of Global Options, anything you can imagine and design, you can build and implement as your Footer, either globally or in a conditional layout on a Custom Post Type, a post category, or any number of other possibilites. With the Avada Footer Builder, we have introduced a tool of unparalled design power and flexibility, and you are now limited more by your imagination than anything else.

The #1 Selling WordPress Theme Of All Time

625,000+

Individuals & Businesses Trust Avada

BUY AVADA

Documentation & Videos

We have a wide range of support material to suit your learning style. Our documentation is extensive and growing. There are almost 500 documents, where you can search and read about almost any aspect of Avada. Prefer to watch? We have a growing library of HD video tutorials covering the basics and much, much more. Like to engage? Submit a support ticket, join our Community Forum, or engage with other users on the community run Facebook Avada Users Group.

Documentation

Start Searching

Video Tutorials

Start Watching

Need Support?

Start Engaging

Customize Elements Globally Or Individually

Elements can be controlled globally inside of the Avada Global Options, or individually per Element by changing the options for each once added to a page or post. Individual Element options will always override the global options. This flexibility gives you the ultimate freedom to style Elements and content that is unique and will stand out from the rest of the site.

General

  • Code to Highlight – Set the Code to Highlight.
  • Highlighter Theme – Choose from Default, Light 1, Light 2, Dark 1, Dark 2.
  • Code Language – Choose from bash, css, conf, diff, html, htm http, javascript, json, jsx, less, md, patch, php, phtml, sass, scss, sql, svg, txt, xml, yaml, yml.
  • Line Numbers – Choose to show Line Numbers.
  • Line Wrapping – Choose to set Line Wrapping to Scroll or Break.
  • Copy to Clipboard – Choose to enable Copy to Clipboard button.
  • Copy to Clipboard Text – Set the Text for the Copy to Clipboard button.
  • Element Visibility – Choose to show or hide the element on small, medium or large screens.

  • CSS Class – Add a class to the wrapping HTML element.

  • CSS ID – Add an ID to the wrapping HTML element.

Design

  • Font Size – Set the Font Size.
  • Border Size – Set the Border Size.
  • Border Color – Set the Border Color.
  • Border Style – Set the Style of Border: Default, Solid, Dashed, Dotted.

  • Background Color – Set the Background Color.

  • Line Number Background Color – Set the Background Color for Line Numbers.

  • Line Number Text Color – Set the Color for Line Number Text.

  • Margin – Set the Margin: Top, Left, Bottom, Right.