<?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>Agile on Rails &#187; gtksourceview2</title>
	<atom:link href="http://blog.siverti.com.br/tag/gtksourceview2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.siverti.com.br</link>
	<description>Liberte-se, Comunique-se, Desenvolva-se</description>
	<lastBuildDate>Tue, 11 May 2010 13:12:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Exended Ruby Syntax For Gedit and GtkSourceview2</title>
		<link>http://blog.siverti.com.br/2008/10/02/exended-ruby-syntax/</link>
		<comments>http://blog.siverti.com.br/2008/10/02/exended-ruby-syntax/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 17:54:53 +0000</pubDate>
		<dc:creator>alexandre</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[Gedit]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[tecnologia]]></category>
		<category><![CDATA[gtksourceview2]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://blog.siverti.com.br/?p=88</guid>
		<description><![CDATA[Some months ago since I started using jEdit I also started improving the gtksouceview language definition for ruby and Rails code for use with Gedit, because in most of cases Gedit is faster than jEdit, Now I have some improvements to show. I used as base for show improvements some screenshots that I made from [...]]]></description>
			<content:encoded><![CDATA[<p>Some months ago since I started using jEdit I also started improving the gtksouceview language definition for ruby and Rails code for use with Gedit, because in most of cases Gedit is faster than jEdit, Now I have some improvements to show.<br />
I used as base for show improvements some screenshots that I made from <a href="http://railscasts.com">Railscasts</a>, so I got some episodes that have the &#8220;little things&#8221; I&#8217;ve changed.<br />
This first is a screnshot of Railscasts <a href="http://railscasts.com/episodes/33-making-a-plugin">Episode 33</a>, here we can see the function name properly highlighted and also some Rails specific methods. We can compare the Gedit Screenshot to TextMate screenshot and see that all:</p>
<p><a href="http://alexandredasilva.wordpress.com/files/2008/09/gedit_33.png"><img class="alignnone size-medium wp-image-90" title="gedit_33" src="http://blog.siverti.com.br/wp-content/uploads/2008/09/gedit_33.png?w=300" alt="" width="501" height="396" /></a></p>
<p><a href="http://alexandredasilva.wordpress.com/files/2008/09/railscasts_episode33.png"><img class="alignnone size-medium wp-image-79" title="railscasts_episode33" src="http://blog.siverti.com.br/wp-content/uploads/2008/09/railscasts_episode33.png?w=300" alt="" width="501" height="376" /></a></p>
<p>Here we have a rhtml (html.erb) shippet from <a href="http://railscasts.com/episodes/37-simple-search-form">Episode 37</a>, all tags are highighted properly, including xml markup and erb markup &#8220;&lt;%= %&gt;&#8221;:</p>
<p><a href="http://alexandredasilva.wordpress.com/files/2008/09/gedit_35.png"><img class="alignnone size-medium wp-image-80" title="gedit_37" src="http://blog.siverti.com.br/wp-content/uploads/2008/09/gedit_37.png?w=300" alt="" width="501" height="443" /></a></p>
<p><a href="http://blog.siverti.com.br/wp-content/uploads/2008/09/railscasts_episode37.png"><img class="alignnone size-medium wp-image-81" title="railscasts_episode37" src="http://blog.siverti.com.br/wp-content/uploads/2008/09/railscasts_episode37.png?w=300" alt="" width="501" height="376" /></a></p>
<p>In this (<a href="http://railscasts.com/episodes/62-hacking-activerecord">Episode 62</a>) we have a classmethod correctly highlighed (here I prefered to let &#8220;self&#8221; keyword in the same color of methodname, but is possible to change in future), and the method definitions including method names ending with ?, ! (= signal in the first screenshot):</p>
<p><a href="http://alexandredasilva.wordpress.com/files/2008/09/gedit_62.png"><img class="alignnone size-medium wp-image-84" title="gedit_62" src="http://blog.siverti.com.br/wp-content/uploads/2008/09/gedit_62.png?w=300" alt="" width="501" height="443" /></a></p>
<p><a href="http://blog.siverti.com.br/wp-content/uploads/2008/09/railscasts_episode62.png"><img class="alignnone size-medium wp-image-85" title="railscasts_episode62" src="http://blog.siverti.com.br/wp-content/uploads/2008/09/railscasts_episode62.png?w=300" alt="" width="501" height="376" /></a></p>
<p>And last an example of string interpolation (<a href="http://railscasts.com/episodes/69-markaby-in-helper">Episode 69</a>), that already exists in original language definition but doesn&#8217;t work(I don&#8217;t know exactly why), the approach of original attemp is to change the context of string back to main context, by this way the code &#8220;should&#8221; be highlighted as normal ruby code, and in theory could be other interopated strings in many levels, but, that doesn&#8217;t work and I changed to just colorize (I mean this should be the default and correct way) and interpolation is highlighted properly:</p>
<p><a href="http://blog.siverti.com.br/wp-content/uploads/2008/09/gedit_69.png"><img class="alignnone size-large wp-image-86" title="gedit_69" src="http://blog.siverti.com.br/wp-content/uploads/2008/09/gedit_69.png?w=500" alt="" width="500" height="417" /></a><a href="http://alexandredasilva.wordpress.com/files/2008/09/railscasts_episode69.png"><img class="alignnone size-large wp-image-87" title="railscasts_episode69" src="http://blog.siverti.com.br/wp-content/uploads/2008/09/railscasts_episode69.png?w=500" alt="" width="500" height="375" /></a></p>
<p>You can download a package I made, containing some useful plugins, code snippets and<br />
the language definition. this pack is very useful also if you just installed linux (I use ubuntu) and need quick setup to a Rails development environment</p>
<p>The package also include Extract partial plugin and a Smart indent plugin</p>
<p>How to install.</p>
<p>download the package <a href="http://github.com/lexrupy/gmate/tarball/master">here</a> in some place<br />
open a terminal go to the place of download and type</p>
<pre>$tar -zxvf [name of downloaded tarball]
$./install.sh</pre>
<p><strong><span style="color:#ff0000;">WARNING: <span style="color:#000000;">Some commands need sudo password, so you will be asked.</span></span></strong></p>
<p>Open gedit chose your preferred color, enable your preferred plugins and enjoy.<br />
(The package also include the <a href="http://blog.siverti.com.br/gedit-todo-list-plugin/">TODO-List plugin</a> and you will need to follow plugin README to install)</p>
<p><a href="http://blog.siverti.com.br/gmate/">Gmate Project Page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.siverti.com.br/2008/10/02/exended-ruby-syntax/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
