<?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>andPHP.com &#187; Linux</title>
	<atom:link href="http://www.andphp.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andphp.com</link>
	<description>Web Development Tips, Tricks &#38; Much More</description>
	<lastBuildDate>Tue, 06 Apr 2010 19:41:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Gedit for PHP development (Textmate-ish)</title>
		<link>http://www.andphp.com/2008/02/23/gedit-for-php-development-textmate-ish/</link>
		<comments>http://www.andphp.com/2008/02/23/gedit-for-php-development-textmate-ish/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 00:20:22 +0000</pubDate>
		<dc:creator>Jamal</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[gedit]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[linux ide]]></category>
		<category><![CDATA[web development environment]]></category>

		<guid isPermaLink="false">http://www.andphp.com/2008/02/23/gedit-for-php-development-textmate-ish/</guid>
		<description><![CDATA[Linux Only (sort of): I once was a fan of heavy development environments such as Eclipse or Zend Studio, but not anymore. Don&#8217;t get me wrong. They are very powerful, but in a way too powerful, or rather, too heavy. PHP is a scripting language, likewise, a PHP editor should be fast and easy to [...]]]></description>
			<content:encoded><![CDATA[<p align="left">Linux Only (<a href="http://cygwinports.dotsrc.org/screenshots/gedit.jpg" rel="lightbox[9]">sort of</a>): I once was a fan of heavy development environments such as Eclipse or Zend Studio, but not anymore. Don&#8217;t get me wrong. They are very powerful, but in a way too powerful, or rather, too heavy. PHP is a scripting language, likewise, a PHP editor should be fast and easy to get on and start writing. With a few plugins and modifications you can get gedit to be both a powerful and beautiful editor for PHP, and other languages. This guide will help you to get gedit to resemble something like Textmate for Mac. (This will only work with gedit 2.20+)</p>
<p align="center"><img src="/wp-content/uploads/gedit_1.png" alt="Gedit as a PHP editor" height="298" width="500" /></p>
<p><span id="more-9"></span></p>
<p><strong>File Browser: </strong>This is an excellent plugin that shows the file browser on the left. This even allows you to use connections made from nautilus (the default file explorer for GNOME). Meaning that you can connect to through FTP, SFTP, SSH, Windows share, WebDav, and well, do you really need anything else? To enable it, under <em>Edit</em> select <em>Preferences</em>. Then click the <em>Plugins</em> tab and check File Browser. If it doesn&#8217;t show up make sure you enable the side pane under <em>View</em> (or press F9)<em>.</em></p>
<p><strong>Snippets: </strong>With snippets, you can easily type a keyword (say, function) and hit tab, and it will create the full structure based on the keyword as a template. You can even modify or create new snippets as you please for each language. Once created, you can use tab to skip between each section. This one also comes with gedit by default, so enable it just as you did with the file browser.</p>
<p><strong>Darkmate: </strong>This is the dark theme that I use and prefer. The darker background is easier on my ways because often enough I sit there staring at my screen coding for hours on end. It really helps my eyes, plus the contrast makes things a bit easier to find. You can find the theme <a href="http://live.gnome.org/GtkSourceView/StyleSchemes">here</a> (just scroll down to Dark Styles). Download the XML file and save it under ~/.gnome2/gedit/styles/. Restart gedit and it should show up under <em>Preferences </em>in the <em>Font &amp; Color </em>tab.</p>
<p><strong>SnapOpen:</strong> Allows you to quickly open a file based on the current directory of file browser. It will search for the filename under all sub-directories and quickly find the match for the file you are looking for. This one you can download from <a href="http://www.upperbound.net/snapopen/">here</a>.  Just extract all the files to ~/.gnome2/gedit/plugins and it should show up in the <em>Plugins </em>tab in <em>Preferences</em>. Once enabled, just press Ctrl+Alt+O to open the SnapOpen window, type a few letters of a filename and the matches should start showing up.</p>
<p align="center"><img src="/wp-content/uploads/gedit_2.png" alt="SnapOpen Gedit Plugin" height="405" width="528" /></p>
<p> <strong>Quick Highlight Mode: </strong>This has been useful a few times, specially if you write in other languages that can be embedded with HTML such as Python, where gedit&#8217;s syntax highlight won&#8217;t highlight both (I&#8217;m sure there might be a better way to doing it but I haven&#8217;t found it yet). You can download the plugin from here: http://svn.simplesideias.com.br/general/gedit/plugins/quickhighlightmode/. Use svn export and place the files in ~/.gnome2/gedit/plugins/. Once installed and enabled, press Ctrl+Shift+H to use. Type the name of the language you want to use and hit enter.</p>
<p><strong>Symbol Browser: </strong>The last plugin allows you to quickly browse through a list of functions and variables in the current file. The installation of this plugin requires a bit more work because of a dependency. First, you need to install <a href="http://ctags.sourceforge.net/">exuberant ctags</a>. You can do this from your terminal by typing:</p>
<p><code>sudo apt-get install exuberant-ctags</code></p>
<p>Once exuberant ctags is installed, you can download the Symbol Browser plugin from <a href="http://sourceforge.net/projects/symbol-browser/">here</a>. If you can use the binary files available here (AMD64), then just extract it to ~/.gnome2/gedit/plugins/ and enable it. Otherwise, you will have to compile it. The author of Symbol Browser has a guide on doing so <a href="http://www.micahcarrick.com/11-14-2007/gedit-symbol-browser-plugin.html#2">here</a>.</p>
<p>Now you have an excellent development editor for writing PHP, or really any language. It does not do any advanced things such as project management, building, etc. (Unless you can write up plugins to do it for you) but it does its job, and does it well. One annoying thing is <a href="https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/176465">this bug</a> that happens if you use gedit a lot. Just restart it and you should be back to par (I can&#8217;t wait until its fixed!)</p>
<p>I hope that this list of plugins will help you get the best editor for your development. Let us know how you like it. If you have any suggestions or additions to this list, feel free to post a comment below.</p>
<h3  class="related_post_title">You Might Also Like These</h3><ul class="related_post"><li><a href="http://www.andphp.com/2010/01/26/update-copyright-year-without-using-php/" title="Update Copyright Year WITHOUT using PHP">Update Copyright Year WITHOUT using PHP</a></li><li><a href="http://www.andphp.com/2008/03/04/resize-images-with-this-php-script/" title="Resize images with this PHP script">Resize images with this PHP script</a></li><li><a href="http://www.andphp.com/2009/10/29/jquery-contactable-plug-in-on-internet-explorer/" title="jQuery Contactable Plug-in on Internet Explorer">jQuery Contactable Plug-in on Internet Explorer</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.andphp.com/2008/02/23/gedit-for-php-development-textmate-ish/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
