<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello,<br>
I search about a possibility to set the filetype in the file itself.<br>
<br>
E.g. a file is identified as shell script cause <br>
first line starts with '#!/bin/<big>bash</big>',<br>
but inside perl is called with -x.<br>
So the file should be formatted as perl script automatically at startup.<br>
I know, I can set the filetype within the menus,<br>
but I have to do this everytime the is loaded.<br>
With vim it is possible to do this automatically when the file is loaded<br>
with a line '# vim: set filetype=perl:'.<br>
For the encoding type, geany recognized a line with<br>
'# coding: ISO-8859-15' . <br>
I searched and tried with '# geany_filetype: perl' and<br>
'# filetype: perl', but the auto filetype is shell-script at startup. <br>
<br>
So, is there a possibility to set the filetype in the file itself ?<br>
<br>
Regards Chris.<br>
</body>
</html>