SO - Code line nums

Show line numbers next to code in question

ავტორი
SmokeyPHP
დღიური ინსტალაციები
0
მთლიანი ინსტალაციები
68
რეიტინგი
0 0 1
ვერსია
6
შექმნილია
28.05.2014
განახლებულია
10.06.2014
Size
4,76 KB
ლიცენზია
პ/გ
გამოყენებს მათ

Adds line numbers to code blocks on Stack Overflow (if they have more than 5 lines)

This script will read all code entries on the page, and create line numbering for them. It will be hidden by default, but can be toggled using the #L button that gets added in the top right.

Some click combos are available for the #L toggle button:

Click : Toggle this code block’s line nums

CTRL + Click : Remove the toggle button and line nums from this code block

SHIFT + Click : Toggle line nums on all code blocks (to the same state)

SHIFT + CTRL + Click : Remove line nums from all code blocks

(Removal is not persistent and everything is reset on page reload)

长期地址
遇到问题?请前往 GitHub 提 Issues。