Skip to content

Ahrengot/Monokai-theme-for-Prism.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Soda Monokai theme for Prism.js

Example of HTML highlighting

Demo at http://ahrengot.github.io/Monokai-theme-for-Prism.js/

Usage

Prism.js is a lightweight syntax highlighter with no dependencies. It's quite easy to work with too ... All you need to do is include js/libs/prism.js and `styles/syntax-highlighting.css

Example

Wrap your snippet in a <code class="language-*language*"></code> tag. That <code>-tag can optionally be wrapped in a <pre> tag if you want preformatted output.

<pre><code class="language-*lang*">
    <!-- Preformatted code -->
</code></pre>

In other words, wrap in a pre-tag if you want multiple lines as opposed to inline code. Beware that indentation can mess up the padding around the code a bit, so if you get big marins try un-indenting your code snippet

The theme supports the following languages

  1. HTML
  2. SCSS (Sass/Compass)
  3. CSS
  4. JavaScript
  5. PHP

About

Adds the Soda Monokai theme for Prism.js syntax highlighter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published