View on GitHub

Google-prettify-monokai-theme

An attempt to make a Google Code Prettify theme that looks like Sublime Text Monokai Theme (for HTML Syntax only)

Download this project as a .zip file Download this project as a tar.gz file

google-prettify-monokai-theme

An attempt to make a Google Code Prettify theme that looks like Sublime Text's Monokai Theme.

google-code-prettify (prettify.js) can be downloaded from here: https://code.google.com/p/google-code-prettify/

The theme is best for HTML codes. For CSS, JS and others might not feel like Sublime Text's Monokai, mostly due how pretiffy sort the tags (see more below in 'The Problem with CSS')


Examples

HTML

html

JS

js

CSS

css


The Problem with CSS:

It is impossible to have CSS colored to match Monokai Theme. Element tags, id and class selectors are all treated as plain by Prettify.

Example:

div#id.class > ul li[class*="string"] {color: #f00;}

According to Monokai, had to be like this:

csstobe

On prettify, almost everything is 'plain', therefore everything is of same color, becoming that boring colorless box. Shame on you prettify.