Greasy Fork镜像 还支持 简体中文。

github-tabstop

add tabstop option for hard tabs (works for github/gist)

目前為 2015-11-05 提交的版本,檢視 最新版本

作者
summivox
評價
0 0 0
版本
0.1.0
建立日期
2015-11-05
更新日期
2015-11-05
尺寸
2.8 KB
授權條款
未知
腳本執行於

Hard-tab-indented source code, when displayed by Github/Gist, has hard tabs (\ts) displayed in the browser as-is, which are usually rendered as 8 spaces in modern browsers. This is often undesirable (especially for golang code, where the standard specifies 4-space hard tabs).

After an ignored feature request of user-changeable tabstop to Github, I decided to implement this as a userscript instead.

EDIT: Although github sort of added the feature through an obsecure query string, I still find it helpful.

Enjoy!

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址