Prism syntax highlighting for your website code

Today we’ll be looking at a great tool that some of you may have heard of: PrismJS. Prism is a simple, lightweight, and easy to use syntax highlighter. It is easily customizable and has support for some plugins to extend its functionality.

Customized Download System

Prism has support for 61 languages, including all the web design languages we’re using in our demos. When you download Prism, however, you don’t have to bring in all these languages; you can choose only the ones you need. You can also choose the theme you want to use, then the required JavaScript and CSS will be generated for you.

After selecting the theme and languages you want, download your JS and CSS files at the bottom of the download page.

If you decide you want to use a different theme, just make a new theme selection from the top of the page and download the regenerated stylesheet.

Deployment Method

Load the JavaScript file and CSS file from your customized build.
Now we will include these files into our project.

Links

Hi!

The blog "Alvistec" aims to positioning itself as a recurring site for consultation, in alternative technologies. The Alvistec blog aims so that becomes one most visited sites of tech enthusiasts that contributes to facilitates and to spreads the use of free software, electronics reuse; among other topics.

Caution!: This site is not liable for any damage caused to people or equipment with the information it is exposed. All content is purely informational purposes and is not intended to be a guide. The presented material has been used solely for training purposes and/or entertainment. Viewer discretion is advised.