您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Show line numbers next to code in question
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)