473,386 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Viewing CODE blocks with really long lines

bartonc
6,596 Expert 4TB
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:
Expand|Select|Wrap|Line Numbers
  1. Viewing CODE blocks with really long lines Viewing CODE blocks with really long lines Viewing CODE blocks with really long lines
It even accelerated as I got futher from the starting point!
Dec 6 '06 #1
12 1851
Ganon11
3,652 Expert 2GB
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.
Dec 6 '06 #2
Niheel
2,460 Expert Mod 2GB
Just learned something new, thank you!
Dec 6 '06 #3
NeoPa
32,556 Expert Mod 16PB
Here's something cool that I just discovered (on IE7, I wonder about the others):
It works on my version 6 - cheers.
Dec 7 '06 #4
Killer42
8,435 Expert 8TB
Oh rats! I hate to admit it, but I think you've found something IE does that Firefox can't.

Someone please tell me I'm wrong.
Dec 7 '06 #5
bartonc
6,596 Expert 4TB
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.
Yeah, That's a cool trick that I hadn't thought of. Thanks for the input,
Barton
Dec 7 '06 #6
Ganon11
3,652 Expert 2GB
Oh rats! I hate to admit it, but I think you've found something IE does that Firefox can't.

Someone please tell me I'm wrong.
You're wrong. I'm doing it in Firefox2.
Dec 7 '06 #7
r035198x
13,262 8TB
I suppose it has its merits.

I don't see myself using it for analysing posted code though.
Dec 7 '06 #8
Killer42
8,435 Expert 8TB
You're wrong. I'm doing it in Firefox2.
Don't know what version I'm using (at home - I'm at work now) but it just appies it to the page as a whole. I'm on IE now, and it works. So it's not me doing the wrong thing, at least.
Dec 7 '06 #9
bartonc
6,596 Expert 4TB
I suppose it has its merits.

I don't see myself using it for analysing posted code though.
Good for a quick look, though, right?
Dec 8 '06 #10
MMcCarthy
14,534 Expert Mod 8TB
Don't know what version I'm using (at home - I'm at work now) but it just appies it to the page as a whole. I'm on IE now, and it works. So it's not me doing the wrong thing, at least.
I'm having the same problem Killer. Can do the page but not the code blocks.

Mary
Dec 9 '06 #11
bartonc
6,596 Expert 4TB
I'm having the same problem Killer. Can do the page but not the code blocks.

Mary
Darn it... and those guys just talked you into switching...
Dec 9 '06 #12
Killer42
8,435 Expert 8TB
Darn it... and those guys just talked you into switching...
Well, there are lots of reasons to switch to a decent browser - this just isn't one of them.
Dec 10 '06 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
6
by: Mario T. Lanza | last post by:
Greetings, I don't know about you guys but on many occasions I've asked myself whether or not someone else has solved a particular programming issue -- whether or not they developed a clever...
29
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form...
135
by: Xah Lee | last post by:
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about...
16
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and...
27
by: Tom Cole | last post by:
I'm starting to do more quantity of javascript coding and thought this might be a good time to investigate code styling. I primarily develop in Java and currently use the code styling techniques...
4
by: DeveloperX | last post by:
I am trying to figure out how to rewrite the following chunk of code in Python: C source typedef struct PF { int flags; long user; char*filename;
24
by: David | last post by:
Hi list. What strategies do you use to ensure correctness of new code? Specifically, if you've just written 100 new lines of Python code, then: 1) How do you test the new code? 2) How do...
8
by: Andy B | last post by:
Before I do a no no on a newsgroup, I need to ask a question: What is the max number of lines of code you can/should post here before it gets too long?
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.