Syntax Highlighter displays a block of code with language-aware colour highlighting, using Prism.js under the hood.

This is the settings reference; see the other Syntax Highlighter docs for line highlighting and the download button specifically.

Requirement – This widget is a part of The Plus Addons for Elementor, make sure it’s installed & activated to enjoy all its powers.

Before You Start

  • Edition: Free — Syntax Highlighter ships in The Plus Addons for Elementor Free plugin.
  • Widget to enable: Syntax Highlighter, switched on under The Plus Addons > Widgets.
  • Deprecated: confirmed on the live Widgets screen (The Plus Addons > Widgets, Essential category) – the widget card carries a DEPRECATED badge. It still works if you already have it on a page, but it is not being developed further; avoid building new pages around it.

Content Tab

SettingWhat it doesDefault
LanguageThe programming language Prism.js highlights the code as.Markup (HTML)
ThemeThe colour theme applied to the highlighted code.Prism Default
Source CodeThe actual code to display.Sample welcome message
AlignmentText alignment inside the code block.Left
The language control on the widget's content tab

Options

SettingWhat it doesDefault
Language TextA label shown identifying the language, e.g. “HTML”.Empty
Line NumberShow line numbers down the left edge.Off
Line HighlightA text field naming which line number(s) to tint (see the dedicated doc).Empty
Download ButtonShow a button that downloads the code as a file.Off
Copy Text / Copied Text / Copy Error TextThe button’s three label states.Copy / Copied! / Error
The download button switch on the widget's options section

How It Behaves

Not independently re-tested on a rendered front-end page this session – the highlighting itself (Prism.js colouring the configured language/theme) was not watched running. Every control name, type and default above is taken from a fresh live control extraction (not the old doc’s wording, and not memory).

Limitations

  • The widget is deprecated (see Before You Start) – the panel and admin screen both flag this, and no replacement widget is named.
  • The actual highlighting render and the Copy/Download button’s runtime behaviour were not independently observed on the front end this session.

Troubleshooting

The code does not appear highlighted

Confirm the widget is enabled at The Plus Addons > Widgets, and that the Language setting actually matches the language of the code you pasted in.