<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 5 October 2013 19:20, Thomas Martitz <span dir="ltr"><<a href="mailto:thomas.martitz@student.htw-berlin.de" target="_blank">thomas.martitz@student.htw-berlin.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Am 05.10.2013 11:11, schrieb Mark Robinson:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Hi All,<br>
<br>
Just a note to introduce myself. I am Mark, an old-timer coming from the world of Fortran. My interest in Geany is to use it as a platform to introduce specific functionality to help me and others in my line of work.<br>

<br>
</blockquote>
<br>
Welcome!<br></blockquote><div><br></div><div>And Hi also.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
I’ll be requesting an additional file type (additional lexer I have written) be added to Geany, but thereafter I expect most of the functionality will come in the form of a plugin (I am writing one of these as well). I am not a strong user of C/C++, as I said procedural Fortran is my forte, and this is my first plunge into contributing to an open source project, so expect some dumb questions.<br>

<br>
</blockquote>
<br>
First of all, we have an upstream first ideology, partly because we don't have the resources to extra maintain patches for the projects we use. That means that if you write a lexer you should post that to Scintilla upstream, so that it will land into Geany when we update our copy. Then we can accept the filetype definition as well.<br>
</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
Secondly, I think it might actually possible to write plugins mostly in fortran (although I'm not sure Fortran is a suitable language for this, I know nothing about it) with a little C boilerplate code. But GCC allows to call C functions from fortran doesn't it?<br>
</blockquote><div><br></div><div>See <a href="http://gcc.gnu.org/onlinedocs/gfortran/Interoperability-with-C.html">http://gcc.gnu.org/onlinedocs/gfortran/Interoperability-with-C.html</a> but C string handling in Fortran is messy, and for an IDE most code is string handling.  As Thomas said, I think Fortran is probably not the right language to use for a plugin.  In particular as all the plugin API is actually calls via a function pointer, not direct function calls.</div>
<div> </div><div>You should read (and re-read) the HACKING file, it covers adding a file type and other issues around Geany development.  </div><div><br></div><div>Cheers</div><div>Lex</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
<br>
Best regards<br>
______________________________<u></u>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org" target="_blank">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" target="_blank">https://lists.geany.org/cgi-<u></u>bin/mailman/listinfo/devel</a><br>
</blockquote></div><br></div></div>