github-tabstop

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

ผู้เขียน
summivox
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
7
คะแนน
0 0 0
เวอร์ชัน
0.2.0
สร้างเมื่อ
05-11-2015
อัปเดตเมื่อ
02-03-2016
Size
2.47 กิโลไบต์
สัญญาอนุญาต
ไม่มี
ปรับใช้กับ

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!