Closed (fixed)
Project:
Syntax Highlighter
Version:
6.x-1.13
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Reporter:
Created:
16 Jul 2009 at 17:59 UTC
Updated:
2 Nov 2013 at 00:30 UTC
Jump to comment: Most recent
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 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 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