Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

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

Notifications You must be signed in to change notification settings

RaphaelDDL/google-prettify-monokai-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Tip: Use highlight.js instead. It has "monokai_sublime" theme and better highlighting than prettify.


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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages