GithubHelp home page GithubHelp logo

jmblog / color-themes-for-google-code-prettify Goto Github PK

View Code? Open in Web Editor NEW
298.0 12.0 42.0 899 KB

Syntax highlighting color themes for Google Code Prettify

Home Page: https://jmblog.github.io/color-themes-for-google-code-prettify/

License: Other

HTML 4.70% CSS 89.83% JavaScript 5.19% Shell 0.28%
color-theme google-code-prettify syntax-highlighting

color-themes-for-google-code-prettify's People

Contributors

atelierbram avatar jmblog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

color-themes-for-google-code-prettify's Issues

Bower support?

Hello! Thank you for this beauty. Are you planning to add a bower support. It will be easier to install it.

Tomorrow night theme needs support for the xmp tag

The xmp tag allows you to use html without escaping the characters, and the tomorrow night theme doesn't have styles for that HTML tag.

This needs to be added to the stylesheet:

xmp.prettyprint { // styles here }

Why none of the themes works for me?

Hello, I'm just trying to use any of the themes provided by you but, when I put the stylesheet it looks like this (any theme wraps lines):

tomorrow.css
screen shot 2015-11-29 at 23 33 34

tomorrow-night.css
screen shot 2015-11-29 at 23 41 41

When using the default prettify.css code looks good:

screen shot 2015-11-29 at 23 39 58

What could be the issue?

Thanks!

Yo what's going on with the documentation

I am looking here:
https://github.com/google/code-prettify

and here:
https://rawgit.com/google/code-prettify/master/examples/quine.html

I see this example:

<script src="https://rawgit.com/google/code-prettify/master/loader/run_prettify.js?autoload=true&amp;skin=sunburst&amp;lang=css" defer=""></script>

note it has skin=sunburst as a query option param in the url..

so how do we load these themes in this repo?
can we use the skin option as a query parameter or..?

Menlo font is Mac OS X-only

Your themes are beautiful, but I notice you use the menlo font. Menlo is a Mac OS X-only font. Menlo is based on Bitstream Vera Sans Mono, and DejaVu Sans Mono is another public-domain derivative of Bitstream; both also have decent install bases. Therefore I propose that after menlo is declared, "DejaVu Sans Mono" and "Bitstream Vera Sans Mono" are the first two fallbacks. This will provide a more visually equal font rendering on non-Mac OS X platforms.

I know it's simple to add it to the CSS ourselves after downloading the file, but I was at first disappointed that the rendered text didn't look like it does in the images. It wasn't until I looked into it that I found out it's because the font depicted is Mac OS X only and added equivalent cross-platform fonts (the two mentioned). Not everyone who comes across this font will look that far into it, so having it added by default will provide a more uniform experience.

Tomorrow Night theme broken in Firefox, Safari

Browsers tested:
Chrome 63.0.3234.0
Firefox 56.0
Safari 10.1.2

Chrome:

image

Firefox:

image

Safari:

image

Highlighted code:

<pre class="prettyprint lang-sh"><code>
$ git stash apply
On branch features-from-fbone
Your branch is up-to-date with 'origin/features-from-fbone'.

Changes not staged for commit:
&nbsp; (use "git add &lt;file&gt;..." to update what will be committed)
&nbsp; (use "git checkout -- &lt;file&gt;..." to discard changes in working directory)

<span style="white-space: pre;"> </span>modified:&nbsp; &nbsp;model.py
<span style="white-space: pre;"> </span>modified:&nbsp; &nbsp;requirements.txt

</code></pre>

Still showing default theme

Prettyprint class still showing default theme. I added into head:

<link rel="stylesheet" href="https://cdn.rawgit.com/jmblog/color-themes-for-google-code-prettify/master/dist/themes/tomorrow.min.css">

Have little clue?

Thanks

Desert theme

I ported Vim desert theme by @fugalh to google-prettify, but couldn't figure out where to paste it for pull request. Here is the snippet that I use.

.prettyprint {
  background-color: #333; color: #ddd;
  border: 1px solid #888;
  font-size: 90%;
  padding: 5px; 
}
.str { color: #ffa0a0; } /* string  - pink */
.kwd { color: #f0e68c; font-weight: bold; }
.com { color: #87ceeb; } /* comment - skyblue */
.typ { color: #98fb98; } /* type    - lightgreen */
.lit { color: #cd5c5c; } /* literal - darkred */
.pun { color: #fff; }    /* punctuation */
.pln { color: #fff; }    /* plaintext */
.tag { color: #f0e68c; font-weight: bold; } /* html/xml tag    - lightyellow*/
.atn { color: #bdb76b; font-weight: bold; } /* attribute name  - khaki*/
.atv { color: #ffa0a0; } /* attribute value - pink */
.dec { color: #98fb98; } /* decimal         - lightgreen */

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.