Line Highlight tints one or more lines inside a Syntax Highlighter code block, so a reader’s eye goes straight to the line that matters.
It is a single text field on the widget’s Options section, not a separate repeater control.
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 – see the Settings Overview doc for detail.
Steps
- Add a Syntax Highlighter widget and enter your code in Source Code.
- Open the Options section and find Line Highlight.
- Type the line number(s) you want tinted into that field.
- Open Style > Line Highlight to set the highlight colour (or gradient) if the default doesn’t suit the page.
- Publish and check the front end.
Limitations
- The exact syntax the Line Highlight field accepts (a single number, a comma list, a range like “3-5”, or a mix) was not independently re-tested on a rendered page this session – only the control’s existence, type (plain text) and section were confirmed via a fresh control extraction.
Troubleshooting
No line appears tinted
Confirm the Line Highlight field actually has a value, and that Style > Line Highlight’s colour is not the same colour as the code block’s own background.