SUCCESS: filetypes.Euphoria.conf version 1.0
- Posted by K_D_R Feb 24, 2013
- 1967 views
Good news! Incorporating suggestions from the Geany mailing list, we now have syntax color support for Euphoria, selectable from Geany's menu: /document/Set Filetypes/Scripting Languages/Euphoria source code.
- Copy your version of filetypes.lua which has been edited to support euphoria to: /.config/geany/filedefs/filetypes.Euphoria.conf (If you have downloaded the EuGeany help files from the rds site, you can just rename the file, filetypes.euphoria to filetypes.Euphoria.conf)
- If you like, you can "inherit" lua styling simply by replacing the whole [styling] section with styling=Lua
- Add the assignments of lexer_filetype=Lua and tag_parser=Lua to the section [settings]
[settings] # default extension used when saving files extension=ex lexer_filetype=Lua tag_parser=Lua
- Backup /.config/geany/filetype_extensions.conf and then edit the file as follows:
- In the section [extensions], insert the following assignment of "extensions" for Euphoria:
Euphoria=*.e;*.eu;*.exu;*.exw;*.ex;
- At the end of the file, in the section [Groups], assign Euphoria to Script:
Script=Euphoria;
- edit the file /.config/geany/snippets.conf by inserting the following section
[Euphoria] procedure=procedure %cursor%(%cursor%)\n\t%cursor%\nend\sprocedure\n\n%cursor% function=function%cursor%%cursor%)\n\t%cursor%\nreturn%cursor%\nend\sfunction\n\n%cursor% if=if %cursor% then\n\t%cursor%\nend\sif\n\n%cursor% ifdef=ifdef %cursor% then\n\t%cursor%\nend\sifdef\n\n%cursor% while=while %cursor% do\n\t%cursor%\nend\swhile\n\n%cursor% loop=loop %cursor% do\n\t%cursor%\nend\sloop\n\n%cursor% for=for %cursor% = %cursor% to %cursor% do\n\t%cursor%\nend\sfor\n\n%cursor% switch=switch %cursor% do\n\t%cursor%\nend\sswitch\n\n%cursor% type=type %cursor%(%cursor%)\n\treturn %cursor%\nend\stype\n\n%cursor%
Restart all instances of Geany.
Regards, Ken Rhodes