Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: fizk commented