<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Adding A New&#160;Theme</title>
	<atom:link href="http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.viper007bond.com</link>
	<description>Random stuff written by Alex Mills</description>
	<lastBuildDate>Sat, 11 Feb 2012 01:00:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
	<item>
		<title>By: Ben</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-233660</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Fri, 21 Jan 2011 02:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-233660</guid>
		<description>About last post, the code did not show, but it was this

csharp
...
/csharp</description>
		<content:encoded><![CDATA[<p>About last post, the code did not show, but it was this</p>
<p>csharp<br />
&#8230;<br />
/csharp</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-233659</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Fri, 21 Jan 2011 02:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-233659</guid>
		<description>Sorry about this naive question, but how do I use a theme different from the default with SyntaxHighlighter? I checked the original plugin site (http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/) and the answer was to include this line , but (my naive question), where exactly do I have to insert this?

If I have a code like
[csharp]
...
[/csharp]

where this  should be placed?

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Sorry about this naive question, but how do I use a theme different from the default with SyntaxHighlighter? I checked the original plugin site (<a href="http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/" rel="nofollow">http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/</a>) and the answer was to include this line , but (my naive question), where exactly do I have to insert this?</p>
<p>If I have a code like</p>
<pre class="brush: csharp; title: ; notranslate">
...
</pre>
<p>where this  should be placed?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex (Viper007Bond)</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-232429</link>
		<dc:creator>Alex (Viper007Bond)</dc:creator>
		<pubDate>Tue, 31 Aug 2010 19:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-232429</guid>
		<description>Look at the bottom of the settings page and read about the &quot;highlight&quot; parameter or read http://en.support.wordpress.com/code/posting-source-code/</description>
		<content:encoded><![CDATA[<p>Look at the bottom of the settings page and read about the &#8220;highlight&#8221; parameter or read <a href="http://en.support.wordpress.com/code/posting-source-code/" rel="nofollow">http://en.support.wordpress.com/code/posting-source-code/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephani</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-232426</link>
		<dc:creator>Stephani</dc:creator>
		<pubDate>Tue, 31 Aug 2010 17:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-232426</guid>
		<description>How do you highlight an specific line?</description>
		<content:encoded><![CDATA[<p>How do you highlight an specific line?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J_A_X</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-229265</link>
		<dc:creator>J_A_X</dc:creator>
		<pubDate>Thu, 17 Dec 2009 22:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-229265</guid>
		<description>I&#039;m trying to use this method to add a new stylesheet from my functions.php in my theme folder.  It appears in the list at the settings page.  After I save though, when I check the http calls, it gets shThemeDefault.css and not the CSS that I specified:

[php]wp_register_style(&#039;syntaxhighlighter-theme-mytheme&#039;, get_template_directory() .&#039;/syntaxhighlighter/mytheme.css&#039;, array(&#039;syntaxhighlighter-core&#039;), &#039;0.11&#039;);

add_filter(&#039;syntaxhighlighter_themes&#039;, &#039;syntaxhighlighter_title&#039;);

function syntaxhighlighter_title($themes)
{
  $themes[&#039;syntaxhighlighter-theme-mytheme&#039;] = &#039;My Theme&#039;;
  return $themes;
}[/php]

Everything works, the file is there, just for some reason, it&#039;s not even trying to get that css file, it just goes to the default one.</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to use this method to add a new stylesheet from my functions.php in my theme folder.  It appears in the list at the settings page.  After I save though, when I check the http calls, it gets shThemeDefault.css and not the CSS that I specified:</p>
<pre class="brush: php; title: ; notranslate">wp_register_style('syntaxhighlighter-theme-mytheme', get_template_directory() .'/syntaxhighlighter/mytheme.css', array('syntaxhighlighter-core'), '0.11');

add_filter('syntaxhighlighter_themes', 'syntaxhighlighter_title');

function syntaxhighlighter_title($themes)
{
  $themes['syntaxhighlighter-theme-mytheme'] = 'My Theme';
  return $themes;
}</pre>
<p>Everything works, the file is there, just for some reason, it&#8217;s not even trying to get that css file, it just goes to the default one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viper007Bond</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-229004</link>
		<dc:creator>Viper007Bond</dc:creator>
		<pubDate>Tue, 24 Nov 2009 00:23:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-229004</guid>
		<description>Make sure you use &lt;code&gt;!important&lt;/code&gt; on all of your CSS declarations so that your theme and more importantly the core SyntaxHighlighter CSS file (which controls everything but the colors) doesn&#039;t override it.</description>
		<content:encoded><![CDATA[<p>Make sure you use <code>!important</code> on all of your CSS declarations so that your theme and more importantly the core SyntaxHighlighter CSS file (which controls everything but the colors) doesn&#8217;t override it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hays</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-229002</link>
		<dc:creator>Hays</dc:creator>
		<pubDate>Mon, 23 Nov 2009 22:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-229002</guid>
		<description>Viper007Bond ,

I am having trouble with my CSS actually taking.  I am trying to force a Font to be used for code and it doesn&#039;t seem to be added.  Other changed to the color do take but not the font.  I was told that WordPress can sometimes try to be too smart an it dynamically creates the style sheets.  I am not sure if that is the case here.  I want to make &quot;Courier New&quot; the font, but in Firebug the .syntaxhighlighter class seems to be inheriting about 4 other fonts as well and &quot;Courier New&quot; is the 3rd font in the array of fonts.

[css]
.syntaxhighlighter
{
	font-family: &quot;Courier New&quot;;
	background-color: #fff !important;
	border: 1px solid #E0E0E0 !important;
	padding: 0 !important;
}
[/css]</description>
		<content:encoded><![CDATA[<p>Viper007Bond ,</p>
<p>I am having trouble with my CSS actually taking.  I am trying to force a Font to be used for code and it doesn&#8217;t seem to be added.  Other changed to the color do take but not the font.  I was told that WordPress can sometimes try to be too smart an it dynamically creates the style sheets.  I am not sure if that is the case here.  I want to make &#8220;Courier New&#8221; the font, but in Firebug the .syntaxhighlighter class seems to be inheriting about 4 other fonts as well and &#8220;Courier New&#8221; is the 3rd font in the array of fonts.</p>
<pre class="brush: css; title: ; notranslate">
.syntaxhighlighter
{
	font-family: &quot;Courier New&quot;;
	background-color: #fff !important;
	border: 1px solid #E0E0E0 !important;
	padding: 0 !important;
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hays</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-229000</link>
		<dc:creator>Hays</dc:creator>
		<pubDate>Mon, 23 Nov 2009 20:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-229000</guid>
		<description>Ahhh... got it.  So.  I had some case-sensitivity evil, I ended up needing to make almost all the method name lower-case.  Then I used this instead:

[php]$themes[&#039;modified&#039;] = &#039;Modified&#039;;[/php]

It seems to actually we working now. :)</description>
		<content:encoded><![CDATA[<p>Ahhh&#8230; got it.  So.  I had some case-sensitivity evil, I ended up needing to make almost all the method name lower-case.  Then I used this instead:</p>
<pre class="brush: php; title: ; notranslate">$themes['modified'] = 'Modified';</pre>
<p>It seems to actually we working now. <img src='http://www.viper007bond.com/wordpress/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hays</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-228999</link>
		<dc:creator>Hays</dc:creator>
		<pubDate>Mon, 23 Nov 2009 20:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-228999</guid>
		<description>Hmmm... I was wrong, something still isn&#039;t working.  The Theme shows up in the drop down but after choosing it and pressing save it doesn&#039;t show up selected if I refresh the page.</description>
		<content:encoded><![CDATA[<p>Hmmm&#8230; I was wrong, something still isn&#8217;t working.  The Theme shows up in the drop down but after choosing it and pressing save it doesn&#8217;t show up selected if I refresh the page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hays</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-228998</link>
		<dc:creator>Hays</dc:creator>
		<pubDate>Mon, 23 Nov 2009 20:17:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-228998</guid>
		<description>Cool.  Thanks.  I ended up making the mistake in the add_filter(), I was appending my theme name to the first argument.  After fixing this to the code below it started working. :D

[php]// Tell SyntaxHighlighter Evolved about this new theme
add_filter( &#039;syntaxhighlighter_themes&#039;, &#039;syntaxhighlighter_Modified_addTheme&#039; );[/php]</description>
		<content:encoded><![CDATA[<p>Cool.  Thanks.  I ended up making the mistake in the add_filter(), I was appending my theme name to the first argument.  After fixing this to the code below it started working. <img src='http://www.viper007bond.com/wordpress/wp-content/plugins/tango-smilies/tango/face-smile-big.png' alt=':D' class='wp-smiley' /> </p>
<pre class="brush: php; title: ; notranslate">// Tell SyntaxHighlighter Evolved about this new theme
add_filter( 'syntaxhighlighter_themes', 'syntaxhighlighter_Modified_addTheme' );</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viper007Bond</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-228991</link>
		<dc:creator>Viper007Bond</dc:creator>
		<pubDate>Mon, 23 Nov 2009 11:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-228991</guid>
		<description>Based on your &lt;code&gt;wp_register_style()&lt;/code&gt; that you provided, you&#039;d use this:

[php light=&quot;1&quot;]$themes[&#039;Modified&#039;] = &#039;The Name Of Your Theme&#039;;[/php]</description>
		<content:encoded><![CDATA[<p>Based on your <code>wp_register_style()</code> that you provided, you&#8217;d use this:</p>
<pre class="brush: php; light: true; title: ; notranslate">$themes['Modified'] = 'The Name Of Your Theme';</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Resolved the problem myself. Firebug to the rescue.</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-228988</link>
		<dc:creator>Resolved the problem myself. Firebug to the rescue.</dc:creator>
		<pubDate>Mon, 23 Nov 2009 07:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-228988</guid>
		<description>I&#039;m having no luck with this.  I added the code above to my WordPress plug-in that i used to get my custom Brush loaded but the Theme just never shows up in the &quot;Color Theme&quot; drop down in the &quot;Settings.SyntaxHighlighter Settings&quot; page.

I have the register code in the same method as the wp_register_script code used in the Brush example.  I updated the code to say this:

wp_register_style( &#039;syntaxhighlighter-theme-Modified&#039;, plugins_url( &#039;shThemeModified.css&#039;, __FILE__ ), array(&#039;syntaxhighlighter-core&#039;), &#039;1.0.0&#039; );

Can you just go over this line?

$themes[&#039;yourthemestub&#039;] = &#039;The Name Of Your Theme&#039;;

When you says &quot;yourthemestub&quot;, you you mean just provide the suffix you created for your theme or the full &quot;syntaxhighlighter-theme-yourthemestub&quot; title?  Also, Is &#039;The Name Of Your Theme&#039; just a description that should show up in the UI?

Thanks</description>
		<content:encoded><![CDATA[<p>I&#8217;m having no luck with this.  I added the code above to my WordPress plug-in that i used to get my custom Brush loaded but the Theme just never shows up in the &#8220;Color Theme&#8221; drop down in the &#8220;Settings.SyntaxHighlighter Settings&#8221; page.</p>
<p>I have the register code in the same method as the wp_register_script code used in the Brush example.  I updated the code to say this:</p>
<p>wp_register_style( &#8216;syntaxhighlighter-theme-Modified&#8217;, plugins_url( &#8216;shThemeModified.css&#8217;, __FILE__ ), array(&#8216;syntaxhighlighter-core&#8217;), &#8217;1.0.0&#8242; );</p>
<p>Can you just go over this line?</p>
<p>$themes['yourthemestub'] = &#8216;The Name Of Your Theme&#8217;;</p>
<p>When you says &#8220;yourthemestub&#8221;, you you mean just provide the suffix you created for your theme or the full &#8220;syntaxhighlighter-theme-yourthemestub&#8221; title?  Also, Is &#8216;The Name Of Your Theme&#8217; just a description that should show up in the UI?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AS3 Syntax Highlighting (with SyntaxHighlighter Evolved) &#124; Course Vector</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-228491</link>
		<dc:creator>AS3 Syntax Highlighting (with SyntaxHighlighter Evolved) &#124; Course Vector</dc:creator>
		<pubDate>Fri, 02 Oct 2009 15:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-228491</guid>
		<description>[...] Also included is an updated version of my theme, again changed to be more inline with how other themes were built. To use it with SyntaxHighlighter Evolved is more of a chore and directions can be seen here. [...]</description>
		<content:encoded><![CDATA[<p>[...] Also included is an updated version of my theme, again changed to be more inline with how other themes were built. To use it with SyntaxHighlighter Evolved is more of a chore and directions can be seen here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lady-Succubus</title>
		<link>http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/comment-page-1/#comment-228108</link>
		<dc:creator>Lady-Succubus</dc:creator>
		<pubDate>Fri, 24 Jul 2009 08:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.viper007bond.com/?page_id=1015#comment-228108</guid>
		<description>It would really have been great if I discovered this before I made my theme... but I must admit it was pretty fun discovering how to do it myself :P
 &lt;code&gt; &lt;/code&gt;
 &lt;code&gt; &lt;/code&gt;
eyra</description>
		<content:encoded><![CDATA[<p>It would really have been great if I discovered this before I made my theme&#8230; but I must admit it was pretty fun discovering how to do it myself <img src='http://www.viper007bond.com/wordpress/wp-content/plugins/tango-smilies/tango/face-raspberry.png' alt=':P' class='wp-smiley' /><br />
 <code> </code><br />
 <code> </code><br />
eyra</p>
]]></content:encoded>
	</item>
</channel>
</rss>

