Code: C++ (CC BY-SA 4.0)

Prism Syntax Highlighter for WordPress

The syntax highlighter that I use here on Laboratory Sandbox (LaBox) is the WordPress plugin Prism Syntax Highlighter (detached). Unfortunately, it was eight (8) months ago when it was last updated by the author, apfelbox. Good thing that apfelbox uploaded his work on Github so I was able to fork it, update it, and here we are with the updated version, live on this blog.

What were the changes from v1.4?

  • Updated PrismJS to source commit: 07c0f4f6b2
  • Added plugin descriptions
  • Added new plugins:
    • File Highlight
    • WebPlatform Docs
  • Added language-code descriptions
  • Added new languages:
    • Bash (Unix Shell)
    • C
    • C-like
    • Coffeescript
    • C++
    • Groovy
    • PHP
    • Python
    • Sassy CSS
    • SQL
  • Added new themes:
    • Okaida
    • Tomorrow
    • Twilight

Download and see it in action inside…

Download

You can download v1.5.1 by clicking here.

Examples

bash (Bash Unix Shell)

Prism Shortcode Error: field, url, data_src is missing

c (C language)

Prism Shortcode Error: field, url, data_src is missing

coffeescript (Coffeescript)

Prism Shortcode Error: field, url, data_src is missing

cpp (C++ language)

Prism Shortcode Error: field, url, data_src is missing

css (Cascading Stylesheet)

Prism Shortcode Error: field, url, data_src is missing

groovy (Groovy script)

Prism Shortcode Error: field, url, data_src is missing

java (Java language)

Prism Shortcode Error: field, url, data_src is missing

javascript (JavaScript)

Prism Shortcode Error: field, url, data_src is missing

markup (xHTML, MathML, SVG, LaTeX, RSS, XML, OWL, etc.)

Prism Shortcode Error: field, url, data_src is missing

php (PHP)

Prism Shortcode Error: field, url, data_src is missing

python (Python language)

Prism Shortcode Error: field, url, data_src is missing

scss (Sassy CSS)

Prism Shortcode Error: field, url, data_src is missing

sql (SQL)

Prism Shortcode Error: field, url, data_src is missing

Download

You can download v1.5.1 by clicking here.

Is a self-confessed bibliophile and technophile other than being an early adopter, an avid gamer, a geek, nerd, role-player, anime otaku, and trekker.

His first online project was in 1998 when he launched the unofficial website for Ansalon MUD and his own community forums Laibcoms.Community. By 2003 he created his work blog GM-Yukino which grew into gameshogun™, Snoworld™, and techmagus™.

His website is jcsesecuneta.com and 1way.faith. He also owns Clean Real Food, YourOnly.One, Adorable & Beautiful, and other online properties.

CC BY-SA 4.0 Prism Syntax Highlighter for WordPress by Yuki is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Permissions beyond the scope of this license may be available at Legal Notice.

Comment(s) via

Loading Facebook Comments ...
Loading Disqus Comments ...
Skip to toolbar