<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : SyntaxHighlighter - Custom Brushes</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 03 Apr 2026 17:53:59 -0000</pubDate>

		<item>
			<title>Macik</title>
			<description><![CDATA[<p>As I remember… not. You can not just add addition styles this way.</p>

<p>To add it you must do these steps:</p>

<ul><li>Download full bundle of SH — <a href="http://alexgorbatchev.com/SyntaxHighlighter/download/download.php?sh_current" rel="nofollow">http://alexgorbatchev.com/SyntaxHighlighter/download/download.php?sh_current</a></li>
	<li>Locate `scripts` folder and these files within it:  shCore.js, shAutoloader.js, shBrush*.js</li>
	<li>Copy these files to plugin <strong style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(68,68,68);font-family:sans-serif;background:rgb(238,238,238);">lib/scripts/</strong> folder.</li>
	<li>Add you custom brushes there</li>
	<li>Edit `syntaxhighlighter.footer.php` as follows:</li>
</ul><p>Replace:</p>

<pre class="brush:php;">
$sh_core_js = $cfg['plugins_dir'] . '/syntaxhighlighter/lib/scripts/shAll.min.js';

cot_rc_embed_footer(&lt;&lt;&lt;JS
$(function(){if($('pre').length&gt;0){ $('head').append('$sh_core_css');$('head').append('$sh_theme_css');var sh_e1=document.createElement('script');sh_e1.async=true;sh_e1.src ='$sh_core_js';document.getElementById('body').appendChild(sh_e1);}});
JS
);
</pre>

<p>With something like this (I'm not check the actual code): </p>

<pre class="brush:php;">
	$sh_core_js = $cfg['plugins_dir'] . '/syntaxhighlighter/lib/scripts/shCore.js';
	$sh_autoloader_js = $cfg['plugins_dir'] . '/syntaxhighlighter/lib/scripts/shAutoloader.js';

cot_rc_embed_footer(&lt;&lt;&lt;JS
$(function(){if($('pre').length&gt;0){ $('head').append('$sh_core_css');$('head').append('$sh_theme_css');var sh_e1=document.createElement('script');sh_e1.async=true;sh_e1.src ='$sh_core_js';$('body').append(sh_e1);
var sh_e2=document.createElement('script');sh_e2.async=true;sh_e2.src ='$sh_autoloader_js';$('body').append(sh_e2);
}});
JS
);
</pre>

<p>We load 2 files (<span style="white-space:pre-wrap;font-size:13px;line-height:1.6em;">shCore.js, </span><span style="white-space:pre-wrap;font-size:13px;line-height:1.6em;">shAutoloader.js</span><span style="font-size:13px;line-height:1.6em;">) instead of `</span><span style="white-space:pre-wrap;font-size:13px;line-height:1.6em;">shAll.min.js</span><span style="font-size:13px;line-height:1.6em;">`</span></p>

<p>Any way, look at doc for autoloader — <a href="http://alexgorbatchev.com/SyntaxHighlighter/manual/api/autoloader.html" rel="nofollow">http://alexgorbatchev.com/SyntaxHighlighter/manual/api/autoloader.html</a></p>

<p> </p>
]]></description>
			<pubDate>Cum, 02 Mayıs 2014 16:19:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7731&d=0#post39498]]></link>
		</item>
		<item>
			<title>Hodges</title>
			<description><![CDATA[<p>Hi Trustmaster,</p>

<p>I was looking at this page <a href="http://www.undermyhat.org/blog/2009/09/list-of-brushes-syntaxhighligher/" rel="nofollow">http://www.undermyhat.org/blog/2009/09/list-of-brushes-syntaxhighligher/</a> that offers custom brushes for syntaxhighligter outside the standard set. How would I include these extra brushes into your plugin? At the moment the default brushes are all merged together in <strong>syntaxhighlighter/lib/scripts/shAll.min.js</strong>.</p>

<p>For example if I wanted to add <strong>shBrushLatex.js</strong> could this be appended into line 25 of <strong>syntaxhighlighter/syntaxhighlighter.footer.php</strong>, for example?</p>

<p>Thanks,<br />
Hodges</p>
]]></description>
			<pubDate>Cum, 02 Mayıs 2014 13:49:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7731&d=0#post39496]]></link>
		</item>
	</channel>
</rss>