<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nerthase 2.0 &#187; Plugin</title>
	<atom:link href="http://www.nerthase.com/blog/category/wordpress/plugin/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nerthase.com/blog</link>
	<description>Progettazione... Programmazione... Soluzione...</description>
	<lastBuildDate>Wed, 29 Jun 2011 07:11:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress plugin :: CodeColorer</title>
		<link>http://www.nerthase.com/blog/wordpress-plugin-codecolorer?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-plugin-codecolorer</link>
		<comments>http://www.nerthase.com/blog/wordpress-plugin-codecolorer#comments</comments>
		<pubDate>Tue, 19 Jan 2010 21:31:02 +0000</pubDate>
		<dc:creator>nerthase</dc:creator>
				<category><![CDATA[Guide]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[codecolorer]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[syntax highlighting]]></category>

		<guid isPermaLink="false">http://www.nerthase.com/blog/?p=49</guid>
		<description><![CDATA[Come avrete notato, in vari miei articoli ho utilizzato un interessante plugin per colorare la sintassi del codice HTML utilizzato. Questo plugin è CodeColorer, disponibile sul sito ufficiale di WordPresso a questo link. Di seguito una guida per l&#8217;installazione e l&#8217;utilizzo di CodeColorer: Installation Download and unpack plugin files to wp-content/plugins/codecolorer directory. Enable CodeColorer plugin&#8230;]]></description>
			<content:encoded><![CDATA[<p>Come avrete notato, in vari miei articoli ho utilizzato un interessante plugin per colorare la sintassi del codice HTML utilizzato. Questo plugin è <a title="WordPress plugin :: CodeColorer" href="http://wordpress.org/extend/plugins/codecolorer/" target="_blank">CodeColorer</a>, disponibile sul sito ufficiale di WordPresso a <a title="WordPress plugin :: CodeColorer" href="http://wordpress.org/extend/plugins/codecolorer/" target="_blank">questo link</a>.</p>
<p>Di seguito una guida per l&#8217;installazione e l&#8217;utilizzo di <a title="WordPress plugin :: CodeColorer" href="http://wordpress.org/extend/plugins/codecolorer/" target="_blank">CodeColorer</a>:<br />
<div class="clear-block"><div class="ad alignleft"><script type="text/javascript"><!--
google_ad_client = "ca-pub-3082594121433544";
/* 728x90, creato 30/07/09 */
google_ad_slot = "9645358027";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></div></p>
<div>
<div>
<h4>Installation</h4>
<ol>
<li>Download and unpack plugin files to <strong>wp-content/plugins/codecolorer </strong>directory.</li>
<li>Enable <strong>CodeColorer</strong> plugin on your <em>Plugins</em> page in <em>Site Admin</em>.</li>
<li>Go to the <em>Options/CodeColorer</em> page in <em>Site Admin</em> and change plugin&#8217;s options as you wish.</li>
<li>Use <code class="codecolorer text mac-classic"><span class="text">[cc lang=&quot;lang&quot;]code[/cc]</span></code>  or <code class="codecolorer text mac-classic"><span class="text">&lt;code lang=&quot;lang&quot;&gt;code&lt;/cc&gt;</span></code>  syntax to insert code snippet into the post (you could skip  lang=&#8221;lang&#8221; , in this case code would be in CodeColorer&#8217;s code block, but without syntax highlighting). Also you can use <code class="codecolorer text mac-classic"><span class="text">[cci lang=&quot;lang&quot;]code[/cci]</span></code>  to format inline code (see the &#8220;inline&#8221; option description).</li>
<li>Have fun!</li>
</ol>
<h4>Syntax</h4>
<p style="padding-left: 30px;">To insert code snippet into your post (or comment) you should use <code class="codecolorer text mac-classic"><span class="text">[cc lang=&quot;lang&quot;]code[/cc]</span></code> or <code class="codecolorer text mac-classic"><span class="text">&lt;code lang=&quot;lang&quot;&gt;code&lt;/cc&gt;</span></code>  syntax. Starting from version 0.6.0 you could specify additional CodeColorer options inside <code class="codecolorer text mac-classic"><span class="text">[cc]</span></code> tag:</p>
<p style="padding-left: 30px; text-align: left;">
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[cc lang=&quot;php&quot; tab_size=&quot;2&quot; lines=&quot;40&quot;]<br />
// some code<br />
[/cc]</div></div>
</p>
<p style="padding-left: 30px;">Note: You should always use double quotes or single quotes around the parameter value. Boolean values could be passed using string <em>true</em> or <em>false</em>, <em>on</em> or <em>off</em>, number<em>1</em> or <em>0</em>.</p>
<div class="clear-block"><div class="ad alignleft"><script type="text/javascript"><!--
google_ad_client = "ca-pub-3082594121433544";
/* 728x90, creato 30/07/09 */
google_ad_slot = "9645358027";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></div>
<h4>Short codes</h4>
<p style="padding-left: 30px;">Starting from CodeColorer 0.8.6 you can use short codes to insert code snippets. The short code in common looks like <code class="codecolorer text mac-classic"><span class="text">[ccM_LANG]</span></code>, where <strong>LANG</strong> is your programming language, and <strong>M</strong> is the one or more of following modes:</p>
<ul style="padding-left: 30px;">
<li><strong>i</strong> – <em>inline</em></li>
<li><strong>e</strong> – <em>escaped</em></li>
<li><strong>s</strong> – <em>strict</em></li>
<li><strong>n</strong> – <em>line_numbers</em></li>
<li><strong>b</strong> – <em>no_border</em></li>
<li><strong>w</strong> – <em>no_wrap</em></li>
<li><strong>l</strong> – <em>no_links</em></li>
</ul>
<p style="padding-left: 30px;">Small letter means <strong>enabled</strong>, capital – <strong>disabled</strong>. Examples:</p>
<p style="padding-left: 30px;"><em>PHP code with links enabled and line numbers disabled:</em></p>
<p style="padding-left: 30px;">
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[cclN_php]<br />
echo &quot;hello&quot;<br />
[/cclN_php]</div></div>
</p>
<p style="padding-left: 30px;"><em>Already escaped HTML code:</em></p>
<p style="padding-left: 30px;">
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[ccie_html]&amp;amp;lt;html&amp;amp;gt;[/ccie_html]</div></div>
</p>
<p style="padding-left: 30px;"><em>Ruby code without wrapping having tab size equal to 4:</em></p>
<p style="padding-left: 30px;">
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[ccW_ruby tab_size=&quot;4&quot;]<br />
attr_accessor :title<br />
[/ccW_ruby]</div></div>
</p>
<p style="padding-left: 30px;">More examples could be found on the <a href="http://kpumuk.info/projects/wordpress-plugins/codecolorer/examples">CodeColorer Examples</a> page. You can find modes explained below.</p>
<h4>Possible parameters</h4>
<ul style="padding-left: 30px;">
<li><strong>lang</strong> (<em>string</em>) – source language.</li>
<li><strong>tab_size</strong> (<em>integer</em>) – how many spaces would represent TAB symbol.</li>
<li><strong>lines</strong> (<em>integer</em>) – how many lines would be block height without scroll; could be set to <em>-1</em> to remove vertical scrollbar.</li>
<li><strong>width</strong> (<em>integer</em> or <em>string</em>) – block width.</li>
<li><strong>height</strong> (<em>integer</em> or <em>string</em>) – height in pixels; used when lines number is greater then &#8220;lines&#8221; value.</li>
<li><strong>rss_width</strong> (<em>integer</em> or <em>string</em>) – block width in RSS feeds.</li>
<li><strong>theme</strong> (<em>string</em>) – color theme (default, blackboard, dawn, mac-classic, twitlight, vibrant, geshi).</li>
<li><strong>first_line</strong> (<em>integer</em>) – a number of the first line in the block.</li>
<li><strong>escaped</strong> (<em>boolean</em>) – when <em>true</em> special HTML sequences like  &amp;lt;  or [ will be treated as encoded (in this example as  &lt;  and  [  respectively.)</li>
<li><strong>line_numbers</strong> (<em>boolean</em>) – when <em>true</em> line numbers will be added.</li>
<li><strong>no_links</strong> (<em>boolean</em>) – when <em>false</em> keywords will be represented as links to manual.</li>
<li><strong>inline</strong> (<em>boolean</em>) – when <em>true</em> forces code block to render inside `. Used to paste a single line of code into the regular text.</li>
<li><strong>strict</strong> (<em>boolean</em>) – when <em>true</em> <a href="http://qbnz.com/highlighter/geshi-doc.html#using-strict-mode">strict mode</a> will be enabled. By default CodeColorer tries to guess whether strict mode is needed, so this option allows to force it on or off when automatic suggestion is wrong.</li>
<li><strong>nowrap</strong> (<em>boolean</em>) – when <em>false</em> no horizontal scrollbar will be shown; instead code will be wrapped in the end of code box.</li>
<li><strong>noborder</strong> (<em>boolean</em>) – when <em>true</em> no border will be shown around the code block.</li>
<li><strong>no_cc</strong> (<em>boolean</em>) – when <em>true</em> the syntax in code block will not be highlighted, code will be rendered inside ` &#8220; tag.</li>
<li><strong>class</strong> (<em>string</em>) – additional CSS classes to add to the wrapper HTML element.</li>
</ul>
<p style="padding-left: 30px;">You can use special tag <code class="codecolorer text mac-classic"><span class="text">[cci]</span></code>  instead of <code class="codecolorer text mac-classic"><span class="text">[cc]</span></code>  to force inline mode:</p>
<p style="padding-left: 30px;">
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[cci lang=&quot;php&quot;]some code[/cci]</div></div>
</p>
<p style="padding-left: 30px;">Most of these parameters could be configured via the CodeColorer options page.</p>
<p>Non ho effettuato la traduzione, ma spero comunque di aver reso accessibile a quante più persone possibile questo plugin per me fondamentale.</p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.nerthase.com/blog/wordpress-plugin-codecolorer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

