Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
vertical scrollbar
Avatar
gusto #1
Member for 2 weeks · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: vertical scrollbar
We use to highlight the code on our site https://www.dokuwiki.org/plugin:syntaxhighlighter4. It works great. I need to put a code on the web that has more than 200 lines. However, the website is very long.
How do I make it visible eg. 20 lines with vertical scrollbar
Thank You
Avatar
schplurtz (Moderator) #2
Member since Nov 2009 · 474 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
Hi,

Create or edit conf/userstyle.css, place this code in the file :
body div.dokuwiki div.syntaxhighlighter {
  max-height: 3cm;
  overflow-y: scroll !important;
}

Choose the max height that you need, here 3 cm is very small. You may use any css supported unit. See https://developer.mozilla.org/en-US/docs/Web/CSS/length . Maybe 20lh is what you need.
Avatar
gusto #3
Member for 2 weeks · 2 posts
Group memberships: Members
Show profile · Link to this post
Thank You very much, it works great.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-10-16, 07:37:44 (UTC +02:00)