Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
TRENDING TODAY
Home > News > Webmaster > Web Blog

February 13th, 2013, 17:00 GMT · By Catalin Cimpanu

BLOG

Script of the Day: Prism

SHARE:

Adjust text size:


Prism is a JavaScript library for syntax highlighting source code Enlarge picture - Prism is a JavaScript library for syntax highlighting source code
Embedding source code on a Web page might seem easy to do, but the final result will disappoint most editors or designers. To help improve source code readability, visibility and general styles, famous developer Lea Verou has developed the Prism library.

Coded in vanilla JavaScript, Prism is framework agnostic, meaning it will function with or without any JavaScript library loaded on the page.

Prism works by taking over HTML code blocks, adding features inspired by desktop IDEs and colorizing the outputted code to help readers decipher embedded code much easier and faster.

By default, the library can differentiate between HTML, CSS, JavaScript and Java syntax, but thanks to its included plugin architecture, new programming languages can be added with ease, along with new features and quirks.

The Prism source code can be forked from GitHub.

Download Prism from our Scripts section here.

TELL US WHAT YOU THINK:

747 hits · Link to this article · Print article · Send to friend · Subscribe to news

MUST-READ RELATED ARTICLES:


Script of the Day: Highlight.js

Script of the Day: Strapdown.js

Script of the Day: Photobooth.js

Script of the Day: pickadate.js

Script of the Day: jHERE

READER COMMENTS:



No user comments yet.
Be the first to express your opinion!
Copyright © 2001-2013 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM