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

Prism Syntax Highlighter for WordPress

Development showcase

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.

Donations for the magus

  • XLM (Stellar Lumens) 🚀🪐17: yukino*keybase.io XLM (Stellar Lumens) 🚀🪐17: yukino*keybase.io
    • XLM memo/tag (optional): for techmagus.icu
    • Highly preferred
  • ZEC (Zcash) Z0.03: t1W7HusjBAXgquM7YHu6xDUEBejmYPKU2HC ZEC (Zcash) Z0.03: t1W7HusjBAXgquM7YHu6xDUEBejmYPKU2HC
  • XRP (Ripple) X5: rU2mEJSLqBRkYLVTv55rFTgQajkLTnT6mA XRP (Ripple) X5: rU2mEJSLqBRkYLVTv55rFTgQajkLTnT6mA
    • XRP memo/tag (required): 246013
  • STEEM: yahananxie STEEM: yahananxie
  • ETH_smartcontract (Etherium) Ξ0.007: 0x739d2aae2a5b7a4e1d64c58d121c9d908d706c83 ETH_smartcontract (Etherium) Ξ0.007: 0x739d2aae2a5b7a4e1d64c58d121c9d908d706c83
    • Gas: please use at least 35,000
    • Do not send non-smartcontract ΞTH and ERC20 tokens to this address.
  • ETH_ERC20 (Etherium) Ξ0.007: 0xB127362Dc268B63cE22E697344D2c51e673f18B6 ETH_ERC20 (Etherium) Ξ0.007: 0xB127362Dc268B63cE22E697344D2c51e673f18B6
    • Accepts non-smartcontract transactions and ERC20 tokens (in particular: AWC, ENJ, PAX, TUSD, USDC)
  • BCH (Bitcoin cash) ₿CH0.004: pp8fkmchlu6a7c53a2s682jd70mncrzemsthca6ftl BCH (Bitcoin cash) ₿CH0.004: pp8fkmchlu6a7c53a2s682jd70mncrzemsthca6ftl
  • XBT (Bitcoin core) ₿0.0002: 32w1De4wvr5jEzC4g5P4rkjvqg2bvMR8Vk XBT (Bitcoin core) ₿0.0002: 32w1De4wvr5jEzC4g5P4rkjvqg2bvMR8Vk

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.

Leave a Reply

labox