Skip to content

Black Friday: every Divi plugin we make, $199 once 15 plugins, 100 sites, lifetime updates.

Sale ends in The sale ends Dec 31 at 11:59pm GMT+6.
Get the deal

Native Divi 5 Module

Divi Code Snippet

Syntax-highlighted code blocks with line numbers and copy.

Ask AI about the Divi Code Snippet module

See the Divi Code Snippet in action

A live snippet. Try the Copy button. The highlighter runs only on pages that use the module.

functions.phpphp
add_action( 'wp_enqueue_scripts', function () {
    if ( ! is_singular( 'post' ) ) {
        return;
    }

    wp_enqueue_style(
        'brand-tweaks',
        get_stylesheet_directory_uri() . '/css/brand.css',
        array(),
        '1.2.0'
    );
} );

Why use the Divi Code Snippet module?

Paste code into a text module and it comes out mangled. The Divi Code Snippet module publishes it the way documentation sites do.

Highlighting that’s realThirteen languages and four themes, powered by Prism.
Copy that just worksOne click with Copied feedback. Labels are editable.
Reads like an editorFilename header, language label, and line numbers.
No site-wide weightThe highlighter loads only where the module is used.

Everything the Divi Code Snippet module does

Every option below is included in every Divi Torque Pro plan.

13 languages: PHP, JS, TS, JSX, CSS, HTML, Python, Bash, JSON, SQL, YAML, MarkdownDark, light, midnight & paper themesFilename header + language labelLine numbers with start offsetOne-click Copy / CopiedOptional line wrappingMax height with scrollingCorner radius and typography controlLoads only where used

Simple, honest pricing

Every plan includes all 103 Divi modules. The Unlimited plan covers every site you build.

5,000+ paying customers · 70,000+ WordPress sites

Unlimited Yearly Save $44

$89 $45 first year

Then renews at $72/yr.

  • Unlimited sites
  • 103 modules, 9 extensions
  • Native Divi 5
  • White-label license
  • ×All 15 Divi plugins
Best value

Unlimited Lifetime Save $149

$299 $150 once

Billed once. Updates for life.

  • Unlimited sites
  • 103 modules, 9 extensions
  • Native Divi 5
  • White-label license
  • ×All 15 Divi plugins

Divi Bundle Save $199

$499 $300 once

Billed once. Updates for life.

  • Unlimited sites
  • 103 modules, 9 extensions
  • Native Divi 5
  • White-label license
  • All 15 Divi plugins
  • 30-day money-back guarantee
  • Lifetime honored in writing
  • Secure checkout by card or PayPal