Greasy Fork is available in English.

SO - Code line nums

Show line numbers next to code in question

질문, 리뷰하거나, 이 스크립트를 신고하세요.
개발자
SmokeyPHP
일일 설치수
0
총 설치수
68
평점
0 0 1
버전
6
생성
2014-05-28
갱신
2014-06-10
라이선스
없음
동작 사이트

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)