how do I make sourcode take little space
-
Hi all,
Look at my post http://flossexperiences.wordpress.com/2008/11/19/jaunty-and-grub2/#more-269 . Is there anyway to make the sourcode tags to be able to able to show fewer lines and use the scrollbar to display the whole code.For example if one looks at the first sourcecode listing it shows 53 lines and the other one it shows 156 lines and its ridiculous to show that many number of lines of code. What would be nice if there was a scrollbar vertically as well.
Right now its horizontal in nature for the width , vertical would be nice for height.Any solutions for the same?
-
<div style="overflow:auto;height:200px;">COMPLETE_SHORTCODE&SOURCECODE_HERE</div>
200 should be room for about 15 lines of code but it’s arbitrary – you can change it as you see fit. -
panaghiotisadam how do I do this exactly?
”’[sourcecode language='css']……[/sourcecode]”’
This is what I have been doing till now. Where do I give the div opening and closing tags?
-
-
- The topic ‘how do I make sourcode take little space’ is closed to new replies.