<?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>Codeistry blog &#187; gedit</title>
	<atom:link href="http://www.codeistry.com/blog/tag/gedit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codeistry.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 14 Aug 2009 08:10:31 +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>Choosing syntax highlighting colours for the draw spaces Gedit plugin</title>
		<link>http://www.codeistry.com/blog/2009/05/choosing-syntax-highlighting-colours-for-the-draw-spaces-gedit-plugin/</link>
		<comments>http://www.codeistry.com/blog/2009/05/choosing-syntax-highlighting-colours-for-the-draw-spaces-gedit-plugin/#comments</comments>
		<pubDate>Mon, 04 May 2009 18:55:11 +0000</pubDate>
		<dc:creator>Duncan Lock</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[gedit]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.codeistry.com/blog/?p=297</guid>
		<description><![CDATA[I&#8217;ve recently upgraded to Ubuntu Jaunty &#8211; and therefore Gedit 2.26.1 &#8211; and I couldn&#8217;t figure out how to change the color of spaces shown by the &#8216;Draw Spaces&#8217; plugin. This used to be set in the plugin configuration, but you now do it in the syntax highlighting theme &#8211; but how? What do you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codeistry.com/blog/wp-content/uploads/2009/05/gedit-draw-spaces-colours.png"><img class="alignleft size-full wp-image-298" src="http://www.codeistry.com/blog/wp-content/uploads/2009/05/gedit-draw-spaces-colours.png" alt="" width="612" height="309" /></a>I&#8217;ve recently upgraded to Ubuntu Jaunty &#8211; and therefore <a href="http://projects.gnome.org/gedit/">Gedit</a> 2.26.1 &#8211; and I couldn&#8217;t figure out how to change the color of spaces shown by the &#8216;Draw Spaces&#8217; plugin. This used to be set in the plugin configuration, but you now do it in the syntax highlighting theme &#8211; but how? What do you need to add?</p>
<p>The closest that I got googling was this: <a href="https://bugs.launchpad.net/ubuntu/+source/gedit-plugins/+bug/348500">https://bugs.launchpad.net/ubuntu/+source/gedit-plugins/+bug/348500</a> &#8211; which almost tells you but misses out the crucial bit of info.</p>
<p>So, I asked the fine folks in the <kbd>#gedit</kbd> room on <kbd>irc.gnome.org</kbd> and they enlightened me; you need to add this to your syntax theme file:</p>
<pre>&lt;style name="draw-spaces" foreground="tinted_grey"/&gt;</pre>
<p>Where tinted_gray is one of your theme&#8217;s colours. I would put it at the top somewhere, with the rest of the global stuff. You can look in the cobalt.xml file in /usr/share/gtksourceview-2.0/styles for an example of a theme which does this. I thought I&#8217;d put this here so anyone else who get&#8217;s stuck trying to change this has a better chance of Googling an answer.</p>
<p><a href="http://www.codeistry.com/assets/files/twilight.xml">Download a modified version of the Gedit Twilight Theme, with this tweak added</a>. To install, put the file into your <kbd>~/.gnome2/gedit/styles/</kbd> folder and restart Gedit. Then just select the Twilight theme in Preferences.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeistry.com/blog/2009/05/choosing-syntax-highlighting-colours-for-the-draw-spaces-gedit-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
