SUCCESS: filetypes.Euphoria.conf version 1.0

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.

  1. 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)
  2. If you like, you can "inherit" lua styling simply by replacing the whole [styling] section with styling=Lua
  3. 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 

  1. Backup /.config/geany/filetype_extensions.conf and then edit the file as follows:
  2. In the section [extensions], insert the following assignment of "extensions" for Euphoria:

Euphoria=*.e;*.eu;*.exu;*.exw;*.ex; 

  1. At the end of the file, in the section [Groups], assign Euphoria to Script:

Script=Euphoria; 

  1. 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu