<?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>Beardy Geek &#187; eclipse</title>
	<atom:link href="http://www.beardygeek.com/tag/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.beardygeek.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 30 Jul 2010 21:48:02 +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>Django Template Auto-completion in Eclipse</title>
		<link>http://www.beardygeek.com/2008/11/django-template-auto-completion-in-eclipse/</link>
		<comments>http://www.beardygeek.com/2008/11/django-template-auto-completion-in-eclipse/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 13:56:28 +0000</pubDate>
		<dc:creator>BeardyGeek</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ide]]></category>

		<guid isPermaLink="false">http://www.beardygeek.com/?p=16</guid>
		<description><![CDATA[How to setup Django Template auto-completion in Eclipse]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just recently started using <a href="http://www.djangoproject.com" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.djangoproject.com?referer=');">Django</a> and I wanted to set up an IDE for some coding niceties.</p>
<p>I already use Eclipse for PHP development, so I installed the PyDev plugin for Eclipse.</p>
<p>Now I get autocomplete in the py files, but when writing the Django html templates, there is no autocomplete for the various template tags.</p>
<p><strong>So here&#8217;s a quick guide to adding your own tags in Eclipse.</strong></p>
<ol>
<li>In Eclipse, go to Window-&gt;Preferences</li>
<li>Go down to Web and XML.</li>
<li>Then to HTML files and finally Templates</li>
<li>You will see a list of all the various HTML templates there.</li>
<li>Click on New.</li>
<li>Give your tag a name.  It can&#8217;t be one that&#8217;s already taken, but I found I didn&#8217;t have any issues.  If you want to keep them all together you could start your tag name with &#8216;DJ&#8217;.</li>
<li>Select HTML Tag from the drop down.</li>
<li>Give your tag a description.</li>
<li>Type in the the tag pattern.  If you want the full tag on autocomplete, you might type in {% block ${cursor} %}, otherwise you could start with block, which means you would need to type in the {% and then activate the autocomplete in the HTML editor.  The ${cursor} places the cursor where you want it after the tag has been inserted.</li>
<li>Click Apply and OK.</li>
<li>Test this out in the HTML editor.  Press CTRL and Space.  You should get a list of available tags.  Type b (or what ever the first character is for you tag name), and you&#8217;ll see your block tag with the description next to it.</li>
<li>Press enter, and your tag will appear.</li>
</ol>
<p>Hopefully this will make your Django coding a little easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.beardygeek.com/2008/11/django-template-auto-completion-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
