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.
Hi, with the attached patch it is possible to set up a site-wide configuration for syntaxhighlighter.
Yes, you still need to edit the code, I just hacked it for testing various syntaxhighlighter options, not for actual deployment. But it could still be useful to someone.
BTW, it also triggered an issue in syntaxhighlighter itself, it looks like it doesn't honour font-size
default setting, but this is OT here.
Regards,
Antonio
Comment | File | Size | Author |
---|---|---|---|
syntaxhighlighter_add_sitewide_config_settings_noUI.diff | 3.05 KB | ao2 |
Comments
Comment #1
mattyoung CreditAttribution: mattyoung commentedI added a "Default expressions" textarea in settings so user can enter any syntax highlighter default setup there and that is included in the syntax highlighter initialization. So you can add all your defaults there like this:
>it looks like it doesn't honour font-size default setting,
report this to http://alexgorbatchev.com/forums/
Comment #2
ao2 CreditAttribution: ao2 commentedOk, already better than my dirty hack :)
Maybe the example text could be more complete, but that's not very important.
About the font-size issue, it seems they are already aware of that:
http://alexgorbatchev.com/forums/comments.php?DiscussionID=67&page=1#Item_0
Thanks,
Antonio