Prism Syntax Highlighter


Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind.
This plugin lets you control and use this awesome library in to your WordPress site.

** Comes with 6 Official themes **

Available Languages at this time

  • HTML
  • CSS
  • C-Like
  • Java Script
  • PHP
  • SQL
  • Ruby
  • SQL
  • C
  • ABAP
  • ActionScript
  • Ada
  • Apache Configuration
  • APL
  • Applescript
  • AsciiDoc
  • ASP.NET (C#)
  • AutoIt
  • AutoHotkey
  • Bash
  • Batch
  • Bison
  • Brainfuck
  • Bro
  • C#
  • C++
  • CoffeeScript
  • Crystal
  • D
  • Dart
  • Diff
  • Django/Jinja2
  • Docker
  • Eiffel
  • Elixir
  • Erlang
  • F#
  • Fortran
  • Gherkin
  • Git
  • GLSL
  • Go
  • GraphQL
  • Groovy
  • Haml
  • Handlebars
  • Haskell
  • Haxe
  • HTTP
  • Icon
  • Inform 7
  • Ini
  • J
  • Jade
  • Java
  • Jolie
  • JSON
  • Julia
  • Keyman
  • Kotlin
  • LaTex
  • Less
  • LiveScript
  • Lua
  • Makefile
  • Markdown
  • MEL
  • Mizar
  • Monkey
  • NASM
  • nginx
  • Nim
  • Nix
  • Objective-C
  • OCaml
  • Oz
  • Parser
  • Pascal
  • Perl
  • PowerShell
  • Processing
  • Prolog
  • .properties
  • Protocol Buffers
  • Puppet
  • Pure
  • Python
  • Q
  • Qore
  • R
  • React JSX
  • Reason
  • reST (reStructuredText)
  • Rip
  • Roboconf
  • Rust
  • SAS
  • Sass (Sass)
  • Sass (Scss)
  • Scala
  • Scheme
  • Smalltalk
  • Smarty
  • Stylus
  • Swift
  • Tcl
  • Textile
  • Twig
  • TypeScript
  • Verilog
  • VHDL
  • vim
  • Wiki markup
  • Xojo (REALbasic)
  • YAML

Comes with 16 Official Plugins

  • AutoLinker
  • FileHighlight
  • Line Highlight
  • Line Numbers
  • Show Invisibles
  • Show Language
  • Normalize Whitespace
  • Autoloader
  • Command Line
  • Copy to Clipboard
  • Preview: Base
  • Preview: Angle
  • Preview: Color
  • Preview: Easing
  • Preview: Gradient
  • Preview: Time

Additional Features

  • Tiny MCE (editor) Assistant Button to quickly insert code to posts.
  • Load (enqueue) Prism files (CSS+js) to post pages only

Arbitrary section

Nothing in this section, Read FAQ.


  • Plugin Option Page Screen
  • Tiny MCE Pop-up box
  • Final output on front-end


  1. Remove any existing syntax highlighter or disable them.
  2. Search for ‘ank prism for wp’ in WordPress Plugin Directory and Download the .zip file & extract it.
  3. Upload the folder ank-prism-for-wp to the /wp-content/plugins/ directory
  4. Activate the plugin through the ‘Plugins List’ page in WordPress Admin Area.
  5. Configure this plugin via Settings–>Prism For WP
  6. Enjoy the awesomeness.


What does this plugin actually do?

This plugin allows you to select from available themes, languages and plugins.
It then creates JS and CSS files, stores them on the server and enqueues them to front end.
Everything will be served from the local server.

Where can I find a working demo?

Just head to for demos and instructions.

Who is the original developer of Prism Library?

Changes do not reflect after saving settings ?

Are you using some Cache/Performance plugin (eg:WP Super Cache/W3 Total Cache/BWP Minify) ?

Then flush your WP cache and refresh target page.

This Plugin is unable to write js/css files .

Each time update the settings, the plugin will create new js and CSS files.
There may be some chance that the plugin is unable to create or write these files. These files are essential for the plugin to work.

Possible reasons are ->

  • Not enough permission to write a file.
  • Plugin malfunction (my fault).
  • You hosting provider has disabled File Handling Function via php.ini (rare).

How to resolve ->

  • Login to your website via your FTP client software. (eg: FileZilla)
    and change file permission of this plugin folder.


I have tried few other syntax highlighters. But so far Prism syntax highlighter gave me what I wanted. I currently use it on my website Thanks to the developers.
Thank you for your time. Very like my new widget on my site web.


Prism Syntax Highlighter はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。


“Prism Syntax Highlighter” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。



  • Tested with php 7.4 and WordPress 5.6


  • Added plugin: Normalize Whitespace


  • Added additional languages:
  • Ruby, SQL, C, ABAP, ActionScript, Ada, Apache Configuration, APL, Applescript, AsciiDoc, ASP.NET (C#), AutoIt, AutoHotkey, Bash, BASIC, Batch, Bison, Brainfuck, Bro, C#, C++, CoffeeScript, Crystal, D, Dart, Diff, Django/Jinja2, Docker, Eiffel, Elixir, Erlang, F#, Fortran, Gherkin, Git, GLSL, Go, GraphQL, Groovy, Haml, Handlebars, Haskell, Haxe, HTTP, Icon, Inform 7, Ini, J, Jade, Java, Jolie, JSON, Julia, Keyman, Kotlin, LaTex, Less, LiveScript, LOLCODE, Lua, Makefile, Markdown, MATLAB, MEL, Mizar, Monkey, NASM, nginx, Nim, Nix, Objective-C, OCaml, Oz, PARI/GP, Parser, Pascal, Perl, PowerShell, Processing, Prolog, .properties, Protocol Buffers, Puppet, Pure, Python, Q, Qore, R, React JSX, Reason, reST (reStructuredText), Rip, Roboconf, Rust, SAS, Sass (Sass), Sass (Scss), Scala, Scheme, Smalltalk, Smarty, Stylus, Swift, Tcl, Textile, Twig, TypeScript, Verilog, VHDL, vim, Wiki markup, Xojo (REALbasic), YAML
  • Added additional plugins:
  • Autoloader , Command Line, Copy to Clipboard, Preview: Base, Preview: Angle, Preview: Color, Preview: Easing, Preview: Gradient, Preview: Time
  • Temporarily removed WebPlatform Docs


  • Refactor code a lot
  • Write dynamic files in out folder, so give write permission on out folder from now


  • Updated links


  • Tested upto WordPress 4.3.1
  • Updated notes – No longer maintained


  • Minor bug fixes
  • Improved form handling


  • Security and speed improvements
  • Assistant Button is available for Custom Post types as well


  • Updated modules from original site


  • Option to disable Tiny MCE button.
  • Option to load Prism files only to Post (Single) Pages.
  • Plugin Code optimization and cleanup


  • Add assistant button to Tiny MCE (editor) that will lets user quickly insert code without any tutorial.
  • Released to WordPress


  • Improved docs and site links.
  • Language selection on Option Page has been improved. Take care of dependencies.
  • Minify CSS before writing to file.


  • Quick Bug fix: Rename prism-php.php to prism-php.js


  • First public release on GitHub
  • Submitted to WordPress