网络资源

Google Code Prettify是一个用来对各种页面上的源码进行语法着色高亮显示的JavaScript库。相对于其它的代码高亮功能,Google Code Prettify很小巧,解压后也只有85K的大小。支持大部分常用的语言。不需要指定语言,能够自动检测代码的语言,比较智能。对于CSS比较精通的人士可以很方便的配制出自己需要的颜色方案,没有CSS基础的也不要着急,网上现成的方案一大把。

首先是来自官方推荐的5个颜色主题:

Default

Google Code Prettify颜色主题

Desert

Google Code Prettify颜色主题

Sunburst

Google Code Prettify颜色主题

Sons-Of-Obsidian

Google Code Prettify颜色主题

Doxy

Google Code Prettify颜色主题

来自jmblog的9个主题:

Vibrant Ink

Google Code Prettify颜色主题

GitHub

Google Code Prettify颜色主题

Tomorrow Night

Google Code Prettify颜色主题

Tomorrow

Google Code Prettify颜色主题

Tomorrow Night Eighties

Google Code Prettify颜色主题

Tomorrow Night Blue

Google Code Prettify颜色主题

Tomorrow Night Bright

Google Code Prettify颜色主题

Hemisu Dark

Google Code Prettify颜色主题

Hemisu Light

Google Code Prettify颜色主题

来自Stanley Ng的9款主题:

The Bootstrap Light Theme

Google Code Prettify颜色主题

The Google Code Light Theme

Google Code Prettify颜色主题

The Solarized Dark Theme

Google Code Prettify颜色主题

The Solarized Light Theme

Google Code Prettify颜色主题

The Sons of Obsidian Dark Theme

Google Code Prettify颜色主题

The Tomorrow Night Blue Theme

Google Code Prettify颜色主题

The Tomorrow Night Dark Theme

Google Code Prettify颜色主题

The Tomorrow Night Eighties Theme

Google Code Prettify颜色主题

The Tomorrow Night Light Theme

Google Code Prettify颜色主题

这几个站点收集的主题有些是重复的,如果需要查看实时演示,请至各自站点页面。

为了使用方便,请将下载的CSS样式统一重命名为prettify.css

当前共有 5 条评论 发表在 “Google Code Prettify颜色主题”

    • chonghua

      chonghua

      可以下载啊,但是原来的Google code已停止服务,您可以到Github上看看有没有。

      回复

回复 超級efly 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注