<?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>NotrevBlog &#187; code highlight</title>
	<atom:link href="http://earruda.eti.br/blog/tag/code-highlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://earruda.eti.br/blog</link>
	<description>Éverton Arruda's Blog</description>
	<lastBuildDate>Wed, 01 Jun 2011 15:14:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>VIM as a syntax highlighting pager</title>
		<link>http://earruda.eti.br/blog/2009/07/vim-as-a-syntax-highlighting-pager/</link>
		<comments>http://earruda.eti.br/blog/2009/07/vim-as-a-syntax-highlighting-pager/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 18:59:55 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[code highlight]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vless]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=92</guid>
		<description><![CDATA[I&#8217;ve been looking for a way to use less with syntax highlight and ended up in a page of Ubuntu Tutorials[0] website with a very good tip: Using VIM as a syntax highlighting pager[1]. All you&#8217;ll need is the package vim-full, só, in Debian-like systems, you&#8217;ll need to execute: 1# aptitude install vim-full Then, you&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking for a way to use less with syntax highlight and ended up in a page of Ubuntu Tutorials[0] website with a very good tip: Using VIM as a syntax highlighting pager[1].</p>
<p>All you&#8217;ll need is the package <em>vim-full</em>, só, in Debian-like systems, you&#8217;ll need to execute:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># aptitude install vim-full</div></td></tr></tbody></table></div>
<p>Then, you&#8217;ll have to execute:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ vim -u /usr/share/vim/vim72/macros/less.vim &lt;FILE&gt;</div></td></tr></tbody></table></div>
<p>And you have it working!<br />
<strong>NOTE</strong>: Depending on the version of your VIM, the path to <em>less.vim</em> might be different.</p>
<p>You can make this command simpler by creating an alias and adding it to your <em>.bashrc</em> file:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ echo &quot;alias vless=\&quot;vim -u /usr/share/vim/vim72/macros/less.vim\&quot;&quot; &gt;&gt; ~/.bashrc</div></td></tr></tbody></table></div>
<p>Now the system will need to re-read your <em>.bashrc</em> file, so the changes may be applied:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ . ~/.bashrc</div></td></tr></tbody></table></div>
<p>And after this you can test vless:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ vless &lt;FILE&gt;</div></td></tr></tbody></table></div>
<p>[0] <a href="http://ubuntu-tutorials.com">http://ubuntu-tutorials.com</a><br />
[1] <a href="http://ubuntu-tutorials.com/2008/07/14/use-vim-as-a-syntax-highlighting-pager/">http://ubuntu-tutorials.com/2008/07/14/use-vim-as-a-syntax-highlighting-pager/</a></p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2009/07/vim-as-a-syntax-highlighting-pager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a codebox to your wordpress</title>
		<link>http://earruda.eti.br/blog/2009/04/adding-a-codebox-to-your-wordpress/</link>
		<comments>http://earruda.eti.br/blog/2009/04/adding-a-codebox-to-your-wordpress/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 19:59:37 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[Etc]]></category>
		<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[code highlight]]></category>
		<category><![CDATA[codebox]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=32</guid>
		<description><![CDATA[Adding a codebox to your wordpress blog is really simple, all you have to do is download the one you want, upload it to wp-content/plugins directory in your blog, then you&#8217;ll have to access the admin page of your blog and activate it in the plugins section. Just as any other plugin. I recommend CodeColorer [...]]]></description>
			<content:encoded><![CDATA[<p>Adding a codebox to your wordpress blog is really simple, all you have to do is download the one you want, upload it to <em>wp-content/plugins</em> directory in your blog, then you&#8217;ll have to access the admin page of your blog and activate it in the plugins section. Just as any other plugin.</p>
<p>I recommend CodeColorer plugin, the one i use here in my blog. CodeColorer is developed by <a title="Visit author homepage" href="http://kpumuk.info/">Dmytro Shteflyuk</a>, you can find it at it&#8217;s homepage: <a href="http://kpumuk.info/projects/wordpress-plugins/codecolorer" target="_blank">http://kpumuk.info/projects/wordpress-plugins/codecolorer</a>. This plugins supports more than 100 languages.</p>
<p>After some customizations, my codebox is like this:</p>
<div class="codecolorer-container c default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">#include &lt;stdio.h&gt;</span><br />
<span style="color: #808080; font-style: italic;">/* Hello World in C */</span><br />
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Hello World!<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>If you want to look for other highlight plugins you can find more at <a href="http://wordpress.org/extend/plugins/search.php?q=code+highlight" target="_blank">http://wordpress.org/extend/plugins/search.php?q=code+highlight</a>.</p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2009/04/adding-a-codebox-to-your-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

