<br><br><div class="gmail_quote">On Sat, Feb 23, 2013 at 4:37 PM, Matthew Brush <span dir="ltr"><<a href="mailto:mbrush@codebrainz.ca" target="_blank">mbrush@codebrainz.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>On 13-02-23 01:32 PM, Matthew Brush wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 13-02-23 11:57 AM, Codger wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Greetings All,<br>
<br>
This "kludge" may interest those who are interested in using Geany to<br>
edit<br>
source files in languages for which Geany has no native support.<br>
<br>
I have managed to obtain a high degree of support for the Euphoria<br>
Programming Language, including syntax color and context sensitive<br>
help, by<br>
backing up the original lua support files/references in filetypes.lua,<br>
filetype_extensions.conf, and snippets.conf,  and then editing the lua<br>
files/references to<br>
support Euphoria.  Support for Lua can be swapped/restored back by<br>
executing a batch file type program,<br>
written in Euphoria, which overwrites the the euphoria enabled, files<br>
with<br>
the origninal Lua support  files.  In like manner, Euphoria support<br>
can be<br>
selected again by copying/overwriting the Lua enabled files with those<br>
supporting Euphoria.<br>
<br>
</blockquote>
<br>
TLDR; but you can make a custom filetype based on Lua's without<br>
clobbering the old one, there's some info in the manual:<br>
<a href="http://www.geany.org/manual/current/index.html#custom-filetypes" target="_blank">http://www.geany.org/manual/<u></u>current/index.html#custom-<u></u>filetypes</a><br>
<br>
The general idea goes something like this:<br>
<br>
     $ cp /usr/local/share/geany/<u></u>filetypes.lua \<br>
         /home/you/.config/geany/<u></u>filedefs/filetypes.Euphoria.<u></u>conf<br>
<br>
And then edit the filetypes.Euphoria.conf file to customize keywords,<br>
settings, styles, etc. Then you need to add an extension to<br>
filetype_extensions.conf [Extensions] group:<br>
<br>
     Euphoria=*.eu;<br>
<br>
And then add it to a [Groups] group in that same file:<br>
<br>
     Script=...;Euphoria;<br>
<br>
Then after you restart all Geany instances you can have Lua and Euphoria<br>
side by side without having to choose which one is supported.<br>
<br>
</blockquote>
<br></div></div>
Forgot the last step, put it on Geany's Wiki :)<br>
<a href="http://wiki.geany.org/config/start" target="_blank">http://wiki.geany.org/config/<u></u>start</a><div><div><br>
<br>
Cheers,<br>
Matthew Brush<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org" target="_blank">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-<u></u>bin/mailman/listinfo/user</a></div></div></blockquote></div><div><br></div><div>Perhaps I am doing something continually wrong, but I have not been</div>
<div>able to get the approach you have outlined above, which is described</div><div>in the manual to work - the syntax coloring does not work.</div><div><br></div><div>Let me be specific - the filetypes.lua file when edited to support Euphoria </div>
<div>works very, very well - almost flawlessly (folding is a wee bit funky) </div><div>When this file is copied to the filename filetypes.Euphoria.conf, and Geany is</div><div>restarted, and Euphoria Source Code is selected from the Document/Set Filetypes/Scripting Languages menu - all text color reverts to black in files with the designated Euphoria extensions.</div>
<div><br></div><div>I am puzzled as to why the method you have described, which is also described</div><div>in the Geany manual, apparently works for some type of language files, but not</div><div>for Euphoria.  I should also note that at least two other Euphoria user's have failed to obtain color syntax support for Euphoria files, except by editing the lua support files, as I have done.</div>
<div><br></div><div>I am attaching the file filetypes.Euphoria.conf which is what I use renamed as</div><div>filetypes.lua, just in case you, or some one else familiar with Geany might find</div><div>out what is going wrong where.</div>
<div><br></div><div>Your assistance is appreciated.</div><div><br></div><div>Regards,</div><div>Ken Rhodes</div><div>-- </div>Kenneth Rhodes<div>Ubuntu 12.1</div>
<div>100% MicroSoft Free!</div>