2016-04-21, 03:21:18
Yeah I guess the css is causing the actual asset load, which means you have to change every instance in all the css for the theme, I guess the best solution will be to add a cache policy.
The codesnippet plugin uses highlight.js ( it can be modified to use alternates as well and geshi )
if you want to add front end to your theme you can play with this., and there are a bunch of themes in the folder.
You will have to reset or remove any aggressive pre and code css though.
The codesnippet plugin uses highlight.js ( it can be modified to use alternates as well and geshi )
if you want to add front end to your theme you can play with this., and there are a bunch of themes in the folder.
PHP Code:
<?php
GLOBAL $SITEURL;
GLOBAL $GSADMIN;
?>
<link rel="stylesheet" href="<?php echo $SITEURL.$GSADMIN;?>/template/js/ckeditor/plugins/codesnippet/lib/highlight/styles/monokai_sublime.css" rel="stylesheet">
<script src="<?php echo $SITEURL.$GSADMIN;?>/template/js/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
You will have to reset or remove any aggressive pre and code css though.