Projet

Général

Profil

Révision ed353324

Ajouté par Assos Assos il y a presque 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ckeditor/includes/ckeditor.page.inc
185 185
          t('With codesnippet plugin, CKEditor produces code snippets surrounded by !code. <strong>Note:</strong> You might need to add !highlight on your website so that the displayed code was rendered nicely as in CKEditor. The simplest way to do this is to add this to your theme: !script', array(
186 186
            '!highlight' => l('highlight.js', 'http://highlightjs.org/'),
187 187
            '!code' => '<code>'.htmlspecialchars('<pre><code></code></pre>').'</code>',
188
            '!script' => '<br /><code>'.htmlspecialchars('<link rel="stylesheet" href="http://cdn.ckeditor.com/4.4.0/full-all/plugins/codesnippet/lib/highlight/styles/default.css">').'<br />'.
189
htmlspecialchars('<script src="http://cdn.ckeditor.com/4.4.0/full-all/plugins/codesnippet/lib/highlight/highlight.pack.js" type="text/javascript"></script>').'<br />'.
188
            '!script' => '<br /><code>'.htmlspecialchars('<link rel="stylesheet" href="http://cdn.ckeditor.com/4.4.3/full-all/plugins/codesnippet/lib/highlight/styles/default.css">').'<br />'.
189
htmlspecialchars('<script src="http://cdn.ckeditor.com/4.4.3/full-all/plugins/codesnippet/lib/highlight/highlight.pack.js" type="text/javascript"></script>').'<br />'.
190 190
htmlspecialchars('<script>hljs.initHighlightingOnLoad();</script>').'</code>'
191 191
          )) .
192 192
          '</p>' .

Formats disponibles : Unified diff