Skip to content

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 ships in the free plugin.

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 unlocks all 98 Divi modules on unlimited websites. One licence covers every site you build.

4.7★ from 116 reviews on WordPress.org

Starter

For a handful of client sites.

$149 $89 once

Billed once. Yours forever.

$39/yr

Billed yearly.

  • 10 sites
  • 98 modules, 9 extensions
  • Native Divi 5
  • ×White-label license
  • ×Saddle Pro plugin (AI agents)
Best value

Unlimited

Every site you will ever build.

$249 $149 once

Billed once. Yours forever.

$79/yr

Billed yearly.

  • Unlimited sites
  • 98 modules, 9 extensions
  • Native Divi 5
  • White-label license
  • ×Saddle Pro plugin (AI agents)

Divi Torque+ AI

Everything in Unlimited, plus a second plugin: Saddle Pro, so AI agents can build your site.

$599 $359 once

Billed once. Yours forever.

$99/yr

Billed yearly.

  • Unlimited sites
  • 98 modules, 9 extensions
  • Native Divi 5
  • White-label license
  • Saddle Pro plugin (AI agents)
  • 30-day money-back guarantee
  • Lifetime honored forever, in writing
  • Secure checkout