zzyengineer / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

Scrollbar #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is not a issue, just a feature request.
It is possible to add scrollbar to long codes ?

Original issue reported on code.google.com by giuliani...@gmail.com on 8 May 2007 at 12:12

GoogleCodeExporter commented 9 years ago
This issue-tracker is a fine place for feature requests.

I think you can do that in CSS.  If you put your code in a pre tag like
  <pre class="prettyprint" style="height: 40em; overflow:scroll">
  Your code here
  </pre>
then you should get scrollbars.

You could define a max-height instead for all pre.prettyprint in your 
stylesheet, but
I don't think that works in IE <= 6.

Does that work for you?

Original comment by mikesamuel@gmail.com on 8 May 2007 at 6:07

GoogleCodeExporter commented 9 years ago
closed for lack of activity

Original comment by mikesamuel@gmail.com on 22 May 2007 at 8:44