Documentation Wp Codes Highlighter Plugin for Elementor

Version 1.5WordPress 5.8+PHP 8.4+GPLv2 or laterFree

This is the complete user guide for Skill Wp Code Highlighter for Elementor — the free WordPress code highlighter plugin powered by Prism.js. It explains how to install the plugin, use the Elementor widgets and shortcodes, embed code from GitHub and Bitbucket, choose themes and languages, and keep your site secure.

1. Overview & Requirements

Skill Wp Code Highlighter for Elementor displays source code in a clean, coloured, easy-to-read format. It is made for developers, technical bloggers, course creators and documentation websites, and works without any coding knowledge.

Main capabilities

  • 304 language identifiers covering 200+ programming, scripting, markup and configuration languages, plus MathML, LaTeX and Treeview.
  • 33 syntax themes, including dark, light and accessible (A11y) options.
  • Day/Night auto theme that follows the visitor’s light or dark system setting.
  • Line numbers with a custom starting number, and highlighted lines or ranges.
  • Copy to Clipboard button with a customisable label and success message.
  • Inline colour swatches for HEX, RGB and HSL values and Treeview for folder structures.
  • GitHub and Bitbucket code fetching with caching.
  • Reusable snippet library, copy and view analytics, and JSON import/export.
  • SS-Prompt widget for styled AI prompts and notes.

Requirements

WordPress 5.8 or newer
PHP 8.4 or newer (the plugin uses PHP 8.4 strict types)
Elementor Optional — required only for the two widgets. Tested up to Elementor 3.26.
Browsers Current versions of Chrome, Firefox, Safari, Edge and Opera
License GPLv2 or later

Check your PHP version first: go to Tools → Site Health → Info → Server. If it shows a version lower than 8.4, ask your hosting provider to upgrade PHP before installing.

2. Installation

  1. Download the plugin ZIP. Keep the file zipped.
  2. Back up your website (files and database) before installing any new plugin.
  3. In WordPress, go to Plugins → Add New → Upload Plugin, choose the ZIP file and click Install Now.
  4. Click Activate Plugin. The plugin creates its own database tables (wp_swc_snippets, wp_swc_prompts and wp_swc_analytics) and adds a few starter snippets so you can test it immediately.
  5. Open Skill Code Pro in the WordPress admin menu to set your default theme, copy-button text and Day/Night preferences.

Your table prefix may differ from wp_; the plugin uses whatever prefix your site is configured with.

3. The Skill Code Pro Dashboard

After activation, a Skill Code Pro menu appears in your admin sidebar. It is organised into tabs:

Tab What it does
Overview Quick stats on snippets, views and copies, plus your most-used languages.
Snippets Create, edit, search and filter reusable code snippets. Each snippet gets an ID and a ready-made shortcode.
Post/Page Shortcodes An interactive shortcode builder and reference lists of languages and themes.
SS-Prompts Save and manage prompt boxes for the SS-Prompt highlighter.
Themes Preview all 33 themes live before choosing a default.
Settings Global defaults: theme, line numbers, copy button text, success message, Day/Night themes and caching time.
External Sources Test GitHub/Bitbucket URLs, add optional access tokens and clear the cache.
Security A summary of the security checks the plugin applies, plus import/export of settings and snippets.

The dashboard loads Bootstrap and Font Awesome from public CDNs inside the admin area only. They are not loaded on your public pages.

4. Using the Elementor Coder Widget

Open any page in Elementor, search for Skill Code Highlighter (Coder) and drag it onto the page. The widget has three groups of settings:

Content → Code Source & Syntax

  • Code Source: write code directly, load a saved snippet by ID, or fetch from a GitHub Gist, GitHub repository file, Bitbucket snippet or Bitbucket repository file.
  • Language: a searchable list of all supported languages.
  • File Name / Header Caption: shown in the top bar, for example functions.php.
  • Source Code: paste your code here when using inline code.

Content → Coder Features & Copy Button

  • Line numbering and first line number
  • Highlight specific lines, e.g. 1-3, 6, 9-12
  • Inline CSS colour swatch preview
  • Copy button on/off, button label and copied message
  • Day/Night auto theme with separate light and dark themes
  • Word wrap, window header bar, window dots, language badge and fullscreen button

Style tab

  • Code Block: theme, maximum height, margin, padding and border radius.
  • Typography, Colors & Borders: font size, line height, custom background and text colours, border colour, toolbar colour, typography, border and box shadow.

5. Code Shortcode Reference

Use shortcodes in posts, pages, custom post types, widgets and WooCommerce products. The main shortcode is [skillhilight_code]. The older names [skill_code] and [swc_code] work the same way.

Show a saved snippet

[skillhilight_code id="1"]

Write code inline

[skillhilight_code language="php" theme="dracula" lines="2" title="hello.php"]
<?php
echo 'Hello, Pakistan!';
[/skillhilight_code]

Load code from GitHub

[skillhilight_code source="github_gist" url="https://gist.github.com/username/gist_id" language="javascript"]

All attributes

Attribute Default What it does
id 0 ID of a saved snippet from the Snippets tab.
language Global setting Language slug, e.g. php, python, css, treeview.
theme Global setting Theme slug, e.g. dracula, github-light.
title Empty File name or caption shown in the header bar.
lines Empty Lines to highlight, e.g. 1-3, 6, 9-12.
start 1 Number of the first line.
line_numbers true Show or hide line numbers.
copy_button true Show or hide the copy button.
day_night Global setting Turn automatic light/dark switching on or off.
word_wrap false Wrap long lines instead of scrolling sideways.
max_height Global setting Maximum height of the code box in pixels.
source custom custom, github_gist, github_repo, bitbucket_snippet or bitbucket_repo.
url Empty HTTPS link used with an external source.

6. Gutenberg & Classic Editor

Gutenberg (block editor)

Add a Shortcode block and paste any of the shortcodes above. This works in posts, pages and full-site-editing templates.

Classic Editor and WooCommerce products

Above the editor you will see two buttons: Insert Skill Code and Insert SS-Prompt. They open a window where you paste your code or prompt. The content is saved in the plugin’s own table, and only a short shortcode such as [skillhilight_code id="12"] is placed in your post. This keeps your post content clean.

7. SS-Prompt Highlighter

SS-Prompt displays AI prompts, system instructions or notes inside a styled box. It automatically highlights section labels such as Role: and Task:, variables like {{name}} and [BRACKETS], quoted text and hashtags, and adds a copy button.

Use it with the SS-Prompt Highlighter (Shape Box) Elementor widget or with a shortcode:

[ss_wp_prompt_skill shape="terminal" type="ai_prompt" title="Blog Writer"]
Role: Expert SEO writer
Task: Write an outline for {{topic}}
[/ss_wp_prompt_skill]
Attribute Values
id ID of a saved prompt from the SS-Prompts tab
shape glass, card, terminal, gradient_callout, neon_border, pill_badge, minimal
type ai_prompt, system_prompt, image_prompt, video_prompt, code_prompt, note_box (sets the badge label)
theme Any theme slug from section 9
title Heading shown on the box
copy_button true or false
highlight_tokens true or false — turn automatic token colouring on or off
day_night true or false

8. Showing Code From GitHub & Bitbucket

Instead of copying code into WordPress, you can point the plugin to a file online. The plugin downloads it, highlights it and caches the result so it is not fetched on every page view.

  • GitHub Gist (github_gist): a link such as https://gist.github.com/username/gist_id.
  • GitHub repository file (github_repo): a file link such as https://github.com/owner/repo/blob/main/src/index.js or a raw.githubusercontent.com link.
  • Bitbucket snippet (bitbucket_snippet): a raw snippet link from bitbucket.org.
  • Bitbucket repository file (bitbucket_repo): a link such as https://bitbucket.org/workspace/repo/src/master/file.php.

For security, only HTTPS links to GitHub and Bitbucket are accepted. Links to other websites are rejected. If you update the file online, use Clear Cache in the External Sources tab to show the new version immediately.

9. All 33 Themes

Use the slug in the theme attribute of any shortcode.

Theme Mode Attribute
Dracula (Dark) Dark theme="dracula"
Coy (Clean Light) Light theme="coy"
Dark (Classic) Dark theme="dark"
Wave (Ocean Breeze) Dark theme="wave"
Funky (High Contrast) Dark theme="funky"
Solarized Light Light theme="solarized-light"
Tomorrow Night Dark theme="tomorrow-night"
Twilight Dark theme="twilight"
Material Oceanic Dark theme="material-oceanic"
Okaidia (Sublime) Dark theme="okaidia"
Prism Default (Light) Light theme="default"
Atom One Dark Dark theme="one-dark"
Atom One Light Light theme="one-light"
GitHub Dark Dimmed Dark theme="github-dark"
GitHub Light Light theme="github-light"
Nord Polar Night Dark theme="nord"
Monokai Pro Dark theme="monokai"
Night Owl Dark theme="night-owl"
Synthwave 84 (Neon) Dark theme="synthwave84"
Shades of Purple Dark theme="shades-of-purple"
Tokyo Night Dark theme="tokyo-night"
Catppuccin Mocha Dark theme="catppuccin-mocha"
Ayu Mirage Dark theme="ayu-mirage"
Gruvbox Dark Dark theme="gruvbox-dark"
Gruvbox Light Light theme="gruvbox-light"
VS Code Dark+ Dark theme="vs-dark"
VS Code Light+ Light theme="vs-light"
Material Dark Dark theme="material-dark"
Material Light Light theme="material-light"
Coldark Cold (Light) Light theme="coldark-cold"
Coldark Dark Dark theme="coldark-dark"
Accessible WCAG AAA Dark Dark theme="a11y-dark"
Accessible WCAG AAA Light Light theme="a11y-light"

10. All 304 Language Slugs

Use the slug in the language attribute. Popular choices: php, javascript, typescript, python, html, css, sql, bash, json, treeview and mathml.

Show the full list of 304 languages
  • HTML / XML / SVG / Markup markup
  • HTML5 html
  • XML xml
  • SVG svg
  • Mathematical Markup Language (MathML) mathml
  • SSML (Speech Synthesis Markup) ssml
  • Atom Feed atom
  • RSS Feed rss
  • CSS3 css
  • C-like clike
  • JavaScript (ES6+) javascript
  • ABAP abap
  • ABNF abnf
  • ActionScript actionscript
  • Ada ada
  • Agda agda
  • AL (Business Central) al
  • ANTLR4 antlr4
  • Apache Configuration apacheconf
  • Apex (Salesforce) apex
  • APL apl
  • AppleScript applescript
  • AQL (ArangoDB) aql
  • Arduino arduino
  • ARFF arff
  • ARM Assembly armasm
  • Arturo arturo
  • AsciiDoc asciidoc
  • ASP.NET (C#) aspnet
  • 6502 Assembly asm6502
  • Atmel AVR Assembly asmatmel
  • AutoHotkey autohotkey
  • AutoIt autoit
  • AviSynth avisynth
  • Avro IDL avro-idl
  • AWK awk
  • Bash / Shell bash
  • BASIC basic
  • Batch (DOS/Windows) batch
  • BBCode bbcode
  • Bicep (Azure) bicep
  • Birb birb
  • Bison bison
  • BNF / RBNF bnf
  • BQN bqn
  • Brainfuck brainfuck
  • BrightScript brightscript
  • Bro / Zeek bro
  • BSL (1C:Enterprise) bsl
  • C c
  • C# (C-Sharp) csharp
  • C++ cpp
  • CFScript (ColdFusion) cfscript
  • ChaiScript chaiscript
  • CIL (.NET Intermediate) cil
  • Cilk/C cilkc
  • Cilk/C++ cilkcpp
  • Clojure clojure
  • CMake cmake
  • COBOL cobol
  • CoffeeScript coffeescript
  • Concurnas concurnas
  • Content-Security-Policy csp
  • Cooklang cooklang
  • Coq coq
  • Crystal crystal
  • CSS Extras css-extras
  • CSV csv
  • CUE cue
  • Cypher (Neo4j) cypher
  • D d
  • Dart / Flutter dart
  • DataWeave dataweave
  • DAX (Power BI) dax
  • Dhall dhall
  • Diff / Patch diff
  • Django / Jinja2 django
  • DNS Zone File dns-zone-file
  • Dockerfile docker
  • DOT (Graphviz) dot
  • EBNF ebnf
  • EditorConfig editorconfig
  • Eiffel eiffel
  • EJS ejs
  • Elixir elixir
  • Elm elm
  • Embedded Lua Templating etlua
  • ERB (Embedded Ruby) erb
  • Erlang erlang
  • Excel Formula excel-formula
  • F# (F-Sharp) fsharp
  • Factor factor
  • False false
  • Firestore Security Rules firestore-security-rules
  • Flow flow
  • Fortran fortran
  • FreeMarker Template Language ftl
  • GameMaker Language (GML) gml
  • GAP (Computational Algebra) gap
  • G-code gcode
  • GDScript (Godot) gdscript
  • GEDCOM gedcom
  • gettext (PO/POT) gettext
  • Gherkin (Cucumber BDD) gherkin
  • Git Config / Log git
  • GLSL (OpenGL Shaders) glsl
  • GN (Generate Ninja) gn
  • GNU Linker Script linker-script
  • Go (Golang) go
  • Go Module (go.mod) go-module
  • Gradle gradle
  • GraphQL graphql
  • Groovy groovy
  • Haml haml
  • Handlebars / Mustache handlebars
  • Haskell haskell
  • Haxe haxe
  • HCL (Terraform) hcl
  • HLSL (DirectX Shaders) hlsl
  • Hoon hoon
  • HTTP Request / Response http
  • HTTP Public-Key-Pins hpkp
  • HTTP Strict-Transport-Security hsts
  • IchigoJam BASIC ichigojam
  • Icon icon
  • ICU Message Format icu-message-format
  • Idris idris
  • .gitignore / .dockerignore ignore
  • Inform 7 inform7
  • INI Configuration ini
  • Io io
  • J j
  • Java java
  • JavaDoc javadoc
  • Java Stack Trace javastacktrace
  • JEXL jexl
  • Jolie jolie
  • jq (JSON Processor) jq
  • JSDoc jsdoc
  • JS Extras js-extras
  • JSON json
  • JSON5 json5
  • JSONP jsonp
  • JS Stack Trace jsstacktrace
  • JS Templates js-templates
  • Julia julia
  • Keepalived Configure keepalived
  • Keyman keyman
  • Kotlin kotlin
  • KuMir (КуМир) kumir
  • Kusto (KQL) kusto
  • LaTeX / TeX / ConTeXt latex
  • Latte (PHP Templates) latte
  • Less CSS less
  • LilyPond lilypond
  • Liquid (Shopify) liquid
  • Lisp / Common Lisp lisp
  • LiveScript livescript
  • LLVM IR llvm
  • Log File log
  • LOLCODE lolcode
  • Lua lua
  • Magma (Computational Algebra) magma
  • Makefile makefile
  • Markdown markdown
  • Markup Templating markup-templating
  • Mata (Stata) mata
  • MATLAB matlab
  • MAXScript maxscript
  • MEL (Maya Embedded Language) mel
  • Mermaid Diagrams mermaid
  • METAFONT metafont
  • Mizar mizar
  • MongoDB Query mongodb
  • Monkey monkey
  • MoonScript moonscript
  • N1QL (Couchbase) n1ql
  • N4JS n4js
  • Nand2Tetris HDL nand2tetris-hdl
  • Naninovel Script naniscript
  • NASM Assembly nasm
  • NEON neon
  • Nevod nevod
  • Nginx Configuration nginx
  • Nim nim
  • Nix nix
  • NSIS nsis
  • Objective-C objectivec
  • OCaml ocaml
  • Odin odin
  • OpenCL opencl
  • OpenQASM (Quantum) openqasm
  • Oz oz
  • PARI/GP parigp
  • Parser parser
  • Pascal / Object Pascal / Delphi pascal
  • PascaLIGO pascaligo
  • Patrol Scripting Language psl
  • PC-Axis pcaxis
  • PeopleCode peoplecode
  • Perl perl
  • PHP php
  • PHPDoc phpdoc
  • PHP Extras php-extras
  • PlantUML plant-uml
  • PL/SQL plsql
  • PowerQuery (M) powerquery
  • PowerShell powershell
  • Processing processing
  • Prolog prolog
  • PromQL (Prometheus) promql
  • .properties (Java) properties
  • Protocol Buffers (Protobuf) protobuf
  • Pug (Jade) pug
  • Puppet puppet
  • Pure pure
  • PureBasic purebasic
  • PureScript purescript
  • Python 3 python
  • Q# (Quantum) qsharp
  • Q (kdb+) q
  • QML (Qt) qml
  • Qore qore
  • R (Statistical Computing) r
  • Racket racket
  • Razor C# (CSHTML) cshtml
  • React JSX jsx
  • React TSX (TypeScript) tsx
  • ReasonML reason
  • Regular Expressions (RegEx) regex
  • Rego (Open Policy Agent) rego
  • Ren’Py renpy
  • ReScript rescript
  • reStructuredText rest
  • Rip rip
  • Roboconf roboconf
  • Robot Framework robotframework
  • Ruby / Ruby on Rails ruby
  • Rust rust
  • SAS sas
  • Sass (Indented) sass
  • SCSS (Sassy CSS) scss
  • Scala scala
  • Scheme scheme
  • Shell Session shell-session
  • Smali smali
  • Smalltalk smalltalk
  • Smarty Templates smarty
  • SML (Standard ML) sml
  • Solidity (Ethereum) solidity
  • Visual Studio Solution (.sln) solution-file
  • Soy (Closure Templates) soy
  • SPARQL sparql
  • Splunk SPL splunk-spl
  • SQF sqf
  • SQL (MySQL / PostgreSQL / SQLite) sql
  • Squirrel squirrel
  • Stan (Probabilistic) stan
  • Stata Ado stata
  • Structured Text (IEC 61131-3) iecst
  • Stylus stylus
  • SuperCollider supercollider
  • Svelte svelte
  • Swift swift
  • Systemd Unit File systemd
  • T4 Templating t4-templating
  • T4 Text Templates (C#) t4-cs
  • T4 Text Templates (VB) t4-vb
  • TAP (Test Anything Protocol) tap
  • Tcl tcl
  • Template Toolkit 2 tt2
  • Textile textile
  • TOML toml
  • Tremor tremor
  • Treeview (Directory Structure) treeview
  • Turtle (RDF) turtle
  • Twig twig
  • TypeScript typescript
  • TypoScript typoscript
  • UnrealScript unrealscript
  • UO Razor Script uorazor
  • URI / URL uri
  • V (Vlang) v
  • Vala vala
  • VB.NET vbnet
  • Velocity velocity
  • Verilog verilog
  • VHDL vhdl
  • Vim Script vim
  • Visual Basic / VBA visual-basic
  • WarpScript warpscript
  • WebAssembly (Wasm) wasm
  • Web IDL web-idl
  • WGSL (WebGPU Shaders) wgsl
  • Wiki Markup wiki
  • Wolfram Language / Mathematica wolfram
  • Wren wren
  • Xeora xeora
  • Xojo xojo
  • XQuery xquery
  • YAML yaml
  • YANG yang
  • Zig zig
  • Plain Text plaintext

11. Performance

  • Snippets and prompts are stored in the plugin’s own tables, not in wp_posts or wp_postmeta, so your posts table stays lean.
  • When a page lists several posts, all the snippets they use are loaded in a single database query and kept in WordPress’s object cache.
  • Code from GitHub and Bitbucket is cached using WordPress transients.
  • Prism.js is a small library, and the frontend files are loaded for the plugin’s widgets and shortcodes.

Every site is different, so test your page speed (for example with PageSpeed Insights) after adding the plugin.

12. Security

Version 1.5 includes these protections:

  • Every PHP file blocks direct access.
  • All admin AJAX actions verify a WordPress nonce, and settings require the manage_options capability.
  • Users without the edit_others_posts capability can edit or delete only their own snippets.
  • Database queries use $wpdb->prepare().
  • All code is escaped before display, so HTML or script tags inside snippets are shown as text, not run.
  • External fetching only allows HTTPS GitHub and Bitbucket addresses and uses wp_safe_remote_get().
  • Access tokens are masked in the dashboard and removed from JSON exports.

Recommended for production sites

  • Add define( 'DISALLOW_FILE_EDIT', true ); to wp-config.php.
  • Test snippet permissions with Editor, Author and Subscriber accounts.
  • Keep WordPress, Elementor, PHP and all plugins updated, and run regular security scans.

13. Troubleshooting & FAQ

The plugin will not activate

This is almost always the PHP version. Check Tools → Site Health → Info → Server and upgrade to PHP 8.4 or newer through your hosting control panel.

I can’t find the widget in Elementor

Make sure Elementor is active, then search for “Coder” or “SS-Prompt” in the widget panel. If it still doesn’t appear, clear Elementor’s cache from Elementor → Tools → Regenerate Files & Data.

The code shows without colours

Check that the language slug is correct and that a caching or optimisation plugin is not delaying or combining the plugin’s JavaScript. Exclude the plugin’s scripts from “delay JavaScript” settings if needed.

GitHub code is not updating

The result is cached. Clear it from the External Sources tab, or lower the cache time in Settings.

Does it work with my theme?

The plugin uses its own scoped styles and is designed to work with popular themes such as Astra, Hello Elementor and other Elementor-compatible themes. Preview your pages after installing.

14. Changelog

Version 1.5 — November 2026

  • New admin dashboard design.
  • Theme Studio with live preview of all themes.
  • Reusable snippet library with search, filters and shortcode generator.
  • Analytics for snippet views and copies.
  • GitHub and Bitbucket fetching with caching and host restrictions.
  • Automatic Day/Night themes with a manual toggle.
  • SS-Prompt highlighter with 7 shapes, its own Elementor widget and dashboard tab.
  • Faster loading with single-query preloading and object caching.
  • Security hardening: nonces, capability checks, prepared queries and output escaping.

Version 1.2

  • Added MathML, Treeview and inline CSS colour swatches.
  • Updated Elementor widget registration.

Version 1.0

  • First release with Prism.js highlighting.

Need help or a custom feature?

Download the plugin for free, or hire us to install, customise or build a WordPress solution for you.

Leave a Comment

Your email address will not be published. Required fields are marked *