🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
WP Colored Coding icon
Peut-être abandonné Testé jusqu'à 4.0.38 #1 in code samples

WP Colored Coding

Brings the cool Javascript syntax highlighter Rainbow.js to your WordPress-Blog and allows you to manage code snippets independend from the text editor.

Installations actives10+10+ niveaux
Téléchargements · 30D46▲ +39.4% vs prev. 30d
Évaluation—0 avis
Score de santé23/100En danger
Téléchargements de tous les temps2.9KDepuis août 2012
Support résolu—Aucun fil de discussion récent
A besoin deWP 3.9.2Php tout
Téléchargements · 7j9▼ -43.8% week over week
Notre verdict

Envisager une alternative

WP Colored Coding shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 12 years ago, and scores 23/100 on our health check.

  • Petite base d'utilisateurs (plus de 10 installations actives)
  • Très peu de critiques jusqu'à présent
  • Pas de mise à jour dans 12 ans
  • Uniquement testé jusqu'à WordPress4.0 (le dernier est de 7,1)

Téléchargements quotidiens

134Aug 31Oct 14Nov 28
Hier1
Moyenne quotidienne (1 ans)1
Jour de pointe75 août 2026
12 Derniers mois400

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where WP Colored Coding stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
code samples >100 1,877 Best code samples plugins →
rainbow.js #1 1 Best rainbow.js plugins →
syntax highlighting >100 365 Best syntax highlighting plugins →

Adoption de version

Part de sites actifs par version.

  • 2014.08100.0%

About WP Colored Coding

From the official readme · v2014.08.19

Description

Brings the cool Javascript syntax highlighter Rainbow.js to your WordPress-Blog and allows you to manage code snippets independend from the text editor.

IMPORTANT! – This plugin is no longer testet with PHP 5.2!

Quick Start

  1. Download the plugin from this page
  2. Follow the instructions on the WordPress Codex to install the plugin.
    By default, the plugin is ready for use after activation. Some options can be changed on Settings → Writing.

For a detailed usage manual refer to the Usage section, or – better than a thousand words – to the screenshots.

If you want to change the behaviour of the plugin see the API-Documentation

Réglages

By default, the plugin is ready for use after activation. Some options can be changed on Settings → Writing.

Raw output

This option enables an additional checkbox for each codeblock of a post which allows you to disable the esc_attr() filter for that code snippet. That means, every HTML and Javascript inside this textarea will be parsed by the browser as those. So be carefull with this option.

Usage

Codeblocks

A single Codeblock is identified (in the posts context) by its name. If you don’t want to specify a name for each block, leave it empty, it will be generated automatically.

The language field is also optional. To use syntax highlighting, write in a rainbow supported language. (It will give you suggestions.) Currently these are
* C
* Coffeescript
* C#
* CSS
* Go
* HTML
* Java
* JavaScript
* Lua
* PHP
* Python
* R
* Ruby
* Shell
* Smalltalk

Each codeblock can be placed anywhere in the text by using the shortcode [cc name="{name}"]. You can use the TinyMCE button »CC« for that.

Shortcode (in-text code)

For just a few lines of code you may want to use the shortcode like this:

[cc lang="javascript"]
var str = 'Hello World';
alert( str );
[/cc]

Contribution & Bug-Report

For bug reports or ideas for new features, please use the issue tracker on gitub.

API

The following filters are provided:

  • wp_cc_rainbow_themes
  • wp_cc_rainbow_scripts
  • wp_cc_rainbow_languages

Adding a new Theme is quite easy. Just expend the themes-array by a key like this

/**
 * @param array $themes
 * @return array
 */
function my_new_rainbow_theme( $themes ) {
    $themes[ 'my_theme' ] = array(
        'src'  => //the absolute URI to the stylesheet
        'name' => 'My Theme'
    );

    return $themes;
}
add_filter( 'wp_cc_rainbow_themes', 'my_new_rainbow_theme' );

To add a supported language use

/**
 * @param array $scripts
 * @return array
 */
function my_new_rainbow_script( $scripts ) {
    $scripts[ 'my_new_lang' ] = array(
        'src'       => //the absolute URI to the script
        'depth'     => array( 'rainbow' ),
        'lang'      => 'my_new_lang',
        'in_footer' => TRUE # this must be equal with the script it depends on
    );

    # to override the built-in rainbow version use the key 'rainbow'

    return $scripts;
}
add_filter( 'wp_cc_rainbow_scripts', 'my_new_rainbow_script' );

/**
 * @param array $langs
 * @return array
 */
function my_new_lang( $langs ) {

    $langs[ 'my_new_lang' ] = 'My new lang';

    return $langs;
}
add_filter( 'wp_cc_rainbow_languages', 'my_new_lang' );

Deactivation/Uninstallation

If you deactivate the plugin all settings and codes will be preserved. On uninstallation (delete), all settings and codes will be deleted finally. If this is triggered from the network-admin page, all blogs will be cleaned up.

Acknowledgement

Installation

Just download the latest tag and follow the instructions on the WordPress Codex. Otherwise you can use the plugin installer in your WordPress backend.

Journal de modifications

2014.08.19

  • Adaption to TinyMCE version 4.*
  • Update Rainbow.js to version 1.2
  • Some security enhancements
  • Correction de bugs
  • Changed version number format

1.2.0

  • fixed a bug of the unfiltered output option
  • better readme.txt for wordpress.org

1.1.0

  • spanish language files
  • rainbow support for Go, R, Coffeescript, Java, Smalltalk

1.0.1

  • bugfix
  • Theme Technicolor updated

1.0.0

  • initial release

Journal des modifications complet sur WordPress.org →

Captures d'écran

The Meta-Box on post edit screen to manage your code snippeds.
The Meta-Box on post edit screen to manage your code snippeds.
TinyMCE popup to build and insert shortcode into the text editor.
TinyMCE popup to build and insert shortcode into the text editor.
WP Colored Coding settings section.
WP Colored Coding settings section.

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

FAQ

WP Colored Coding: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is WP Colored Coding free?

Yes. WP Colored Coding is free to download and use from the official WordPress.org plugin directory.

Is WP Colored Coding safe to use in 2026?

WP Colored Coding shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 12 years ago, and scores 23/100 on our health check.

How many websites use WP Colored Coding?

WP Colored Coding is active on 10+ WordPress websites and has been downloaded 2,947 times since it launched in August 2012. It was downloaded 46 times in the last 30 days.

Does WP Colored Coding work with WordPress 7.1?

WP Colored Coding is officially tested up to WordPress 4.0.38, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was WP Colored Coding last updated?

The latest version, 2014.08.19, was released on September 5, 2014 (12 years ago).

Who makes WP Colored Coding?

WP Colored Coding is developed and maintained by David.

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir