Closed (fixed)
Project:
Syntax Highlighter
Version:
7.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2011 at 08:34 UTC
Updated:
19 Apr 2013 at 00:07 UTC
I've the the module working. Looked over the documentation but not finding an answer. My question, is there a way to limit the display area of the code (force it to use a vertical scroll bar if over X # of lines)?
Thanks for any advice.
Comments
Comment #1
mattyoung commentedYou can assign css class name(s) to the code block pre tag and then use css styling to get what you want.
For your code, do this:
in css
if you want all syntaxhighlighter code block to be the same, you don't even need to assign class name; you can simply use the default "syntaxhighlighter" class name.
See http://alexgorbatchev.com/SyntaxHighlighter/manual/demo/class-name.html
Comment #2
fizk commented