Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 1.49 KB
---
layout: post
title: Freemarker syntax highlighting for TextPad
date: 2008-01-03 17:39:47
updated: 2010-01-21 16:08:59
---
<div class="narrow-col">
<p>At work we use <a href="http://www.textpad.com/" title="A text editor for Windows">TextPad</a> as a general purpose text editor for Windows. It's not even close to <a href="http://macromates.com/" title="The missing editor for Mac OS X">TextMate</a> on Mac OS X but it's a welcome help in the Notepad world.</p>
<p>TextPad uses syntax definition files for syntax highlighting. As I'm writing lots of <a href="http://freemarker.org/" title="A Java templating engine library">Freemarker</a> template files for the moment I could use some color coding to make my life easier. Feel free to download the syntax file if you need some color in your Freemarker templates.</p>
<h2>Installation</h2>
<ol>
<li>Download the Freemarker <a href="http://gist.github.com/279096" title="A Freemarker syntax definition file for TextPad">syntax definition file</a>.</li>
<li>Save the file in the &lsquo;Samples&rsquo; subfolder in your TextPad installation folder.</li>
<li>Open TextPad and choose &lsquo;Configure &rarr; New Document Class...&rsquo;.</li>
<li>Specify a name for the class and the extension (*.ftl in our case) and</li>
<li>enable syntax definition highlighting and choose the freemarker.syn from the drop down list.</li>
</ol>
<p>If you now open a new Freemarker template file you should see it nicely color coded.</p>
</div>
You can’t perform that action at this time.