查看具有非常长行的CODE块 [英] Viewing CODE blocks with really long lines

查看:70
本文介绍了查看具有非常长行的CODE块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我刚刚发现的一些很酷的东西(在IE7上,我不知道其他的):

我正在查看一个长代码块,里面有一些非常长的行。由于水平滚动条在查看相关行时是我的屏幕,我开始摆弄我的鼠标按钮(如果你还没有滚轮,你错过了,但中心按钮可能有效)。我点击了滚轮,得到了一个< - >在屏幕上看Gizmo。水平移动鼠标滚动代码块(不是整个窗口)!在这里试试:

Here''s something cool that I just discovered (on IE7, I wonder about the others):
I was viewing a long code block with some really long lines in it. Since the horizontal scroll bar was WAY of my screen while viewing the line in question, I started fiddling with my mouse buttons (if you don''t have a scroll wheel yet, you are missing out, but center button may work). I clicked the scroll wheel and got a <-> looking gizmo on the screen. Moving the mouse horizontally scrolled the code block (not the whole window)! Try it here:

展开 | 选择 < span class =codeDivider> | Wrap | 行号

推荐答案

此方法也适用于网页 - 基本上,无论您点击何处您的鼠标滚轮,此箭头出现,并能够检测您可以滚动的方式。例如,在你的代码块中,箭头左右移动,但我点击了代码框外面,箭头让我上下移动。如果您正在阅读页面上的长文并且不想通过键盘,鼠标滚轮或滚动条不断向下滚动,这可能会有所帮助 - 只需使用此箭头并将其设置在箭头下方稍微滚动即可滚动慢慢地,但不断地。
This method also works with web pages - basically, wherever you click your mouse wheel, this arrow appears and is able to detect which ways you can scroll. For instance, in your code block the arrows went left and right, but I clicked outside of the code box and the arrows let me go up and down. This can be helpful if you''re reading a long article on a page and don''t want to constantly scroll down via keyboard, mouse wheel, or scroll bar - just use this arrow and set it a bit below the arrows to scroll down slowly, yet constantly.

刚学到新东西,谢谢!



Here'我刚刚发现了一些很酷的东西(在IE7上,我不知道其他的):
Here''s something cool that I just discovered (on IE7, I wonder about the others):



它适用于我的版本6 - 干杯。

It works on my version 6 - cheers.


这篇关于查看具有非常长行的CODE块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆