Ticket #285 (new defect)

Opened 3 years ago

Last modified 3 years ago

Source code in horizontally scrollable divs is very painful -- an elegant solution!

Reported by: epitaph Assigned to: developer
Priority: highest Milestone:
Component: Instiki Version: 0.9.2
Severity: normal Keywords:
Cc:

Description

I doubt you're going to disagree with me when I express my extreme distaste with a webpages that display source code snippets in little tiny horozontally scrollable boxes which you have to keep scrolling left and right over and over to read an entire file. It's especially painful when the source code is bigger than your screen so that you have to scroll DOWN just to get to the horizontal scroll bar, then scroll that across, then scroll back up. OH LORDY, WHAT HAVE WE BEEN REDUCED TO!?

I stumbled across an elegant solution to the problem today:

http://nostrich.net/archives/css-thumbnail-gallery/

As you can see, if you just number each line and wrap it, it looks great -- just like a lot of modern text editors.

I've decided to make it my mission to get this feature added to every wiki/blog/source-repository out there. If you're cool with this idea, I'd be willing to add the feature and send the patch along.Just give me the go-ahead!

Change History

01/28/06 21:47:11 changed by anonymous

  • severity changed from critical to normal.

This sounds useful, please go ahead with the patch. Keep in mind that it should be at <code> tags, but not <pre> tags.