更改Github的默认主要样式 [英] Change Github's Default Gist Styles

查看:300
本文介绍了更改Github的默认主要样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能以编程方式或通过某个界面更改Github的gist默认样式?

我不知道任何API或界面影响GitHub上呈现的方式。



如果您在博客中包含这些要点,当然一些CSS本地更改会使您的要点不同,如由此博客文章所示,<一个href =https://stackoverflow.com/a/22950924/6309>这个CSS 或 this CSS



然而,这并不涉及语法高亮。

您只能分享那些Gist一个自定义样式表,例如 Octopress ,使用Sass端口清理语法突出显示

但是,这并不会改变GitHub本身的要点。


Is it possible to change Github's gists default styles programmatically or through some interface?

解决方案

I don't know of any API or interface influencing the way gist are presented on GitHub.

If you include those gist in your blog, then of course some CSS local changes can make your gist different, as illustrated by this blog post, this CSS or this CSS.

However, this doesn't concern syntax highlighting.
You can only share those Gist with a custom stylesheet through, for instance Octopress, using a Sass port of Solarized syntax highlighting.
But again, that won't change those gist presentation on GitHub itself.

这篇关于更改Github的默认主要样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆