~ubuntu-branches/ubuntu/raring/geany/raring-proposed

« back to all changes in this revision

Viewing changes to doc/html/ch04s02.html

  • Committer: Bazaar Package Importer
  • Author(s): Damián Viano
  • Date: 2008-05-02 11:37:45 UTC
  • mto: (3.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20080502113745-7q62rqhl2ku02ptu
Import upstream version 0.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Filetype extensions</title><link rel="stylesheet" href="geany.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"><link rel="start" href="index.html" title="
2
 
                        Geany 0.9
3
 
                "><link rel="up" href="ch04.html" title="Chapter 4. Configuration files"><link rel="prev" href="ch04.html" title="Chapter 4. Configuration files"><link rel="next" href="ch04s03.html" title="Templates"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Filetype extensions</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch04.html">Prev</a> </td><th width="60%" align="center">Chapter 4. Configuration files</th><td width="20%" align="right"> <a accesskey="n" href="ch04s03.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="filetype_extensions"></a>Filetype extensions</h2></div></div></div><p>
4
 
                                You can override the default extensions that <span class="application">Geany</span> uses
5
 
                                for each filetype using the <code class="filename">filetype_extensions.conf</code> file.
6
 
                        </p><p>
7
 
                                To override the system-wide configuration file,
8
 
                                copy it from <code class="filename">$prefix/share/geany</code> to your
9
 
                                configuration directory, usually <code class="filename">~/.geany/</code>.
10
 
                                $prefix is the path where
11
 
                                <span class="application">Geany</span> is       installed (commonly
12
 
                                <code class="filename">/usr/local</code>).
13
 
                        </p><p>
14
 
                                 For example:
15
 
                                 </p><pre class="screen"><code class="prompt">%</code> <strong class="userinput"><code><span><strong class="command">cp /usr/local/share/geany/filetype_extensions.conf /home/username/.geany/</strong></span></code></strong></pre><p>
16
 
                        </p><p>
17
 
                                Then edit it and remove all the lines for filetype extensions that you
18
 
                                do not want to override. The remaining lines can be edited after the
19
 
                                <code class="literal">=</code> sign, using a semi-colon separated list of patterns
20
 
                                which should be matched for that filetype.
21
 
                        </p><p>
22
 
                                For example, to set the filetype extensions for Make, the
23
 
                                <code class="filename">/home/username/.geany/filetype_extensions.conf</code>
24
 
                                file should look like:
25
 
                                </p><div class="literallayout"><p><code class="literal"><br>
26
 
                                                [Extensions]<br>
27
 
                                                Make=Makefile*;*.mk;Buildfile;<br>
28
 
                                </code></p></div><p>
29
 
                        </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch04.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch04.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch04s03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 4. Configuration files </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Templates</td></tr></table></div></body></html>