filetypes.lua edited to support Euphoria

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

Well, I have learned a bit since my last few posts. One, the filetypes.language file which you choose to edit to support Euphoria does not have to reside in /usr/share/geany/ so root or superuser privileges are not required. Two, the filetypes.language files are extremely sensitive. I edited the filetypes.lua file which I was using with instructions contained in comments and uploaded the file to the RDS User Contributions page. After I upgraded from Geany 20 to Geany 20.1, I downloaded the file and was never able to get it to work properly.

Suffice it to say, you can copy the particular language filetypes file which you wish to use to /home/.config/geany/fildefs and edit it to support Euphoria. My current set up is as follows, using /home/.config/geany/filedefs/filetypes.lua:

# For complete documentation of this file, please see Geany's main documentation 
 
[styling] 
# foreground;background;bold;italic 
default=0x000000;0xffffff;false;false 
comment=0xd00000;0xffffff;false;false 
commentline=0xd00000;0xffffff;false;false 
commentdoc=0x3f5fbf;0xffffff;true;false 
number=0x007f00;0xffffff;false;false 
word=0x00007f;0xffffff;true;false 
string=0xff901e;0xffffff;false;false 
character=0x008000;0xffffff;false;false 
literalstring=0x008020;0xffffff;false;false 
preprocessor=0x007f7f;0xffffff;false;false 
operator=0x301010;0xffffff;false;false 
identifier=0x000000;0xffffff;false;false 
stringeol=0x000000;0xe0c0e0;false;false 
keywords=0x0000FF;0xffffff;true;false 
function_basic=0x991111;0xffffff;false;false 
function_other=0xA52A2A;0xffffff;false;false 
 
[keywords] 
# all items must be in one line 
#keywords=and break do else elseif end false for function if in local nil not or repeat return then true until while 
keywords=and as break by case constant continue do else elsedef elsif elsifdef end entry export fallthru for function global goto if ifdef include label loop namespace not or override procedure public retry return routine switch then to type until while with without xor 
# Basic functions 
function_basic=? abort and_bits append arctan atom c_func c_proc call call_func call_proc clear_screen close command_line compare cos date delete delete_routine equal find floor get_key getc getenv gets hash head include_paths insert integerlength log machine_func machine_proc match mem_copy mem_set not_bits object open option_switches or_bits peek peek2s peek2u peek4s peek4u peek_string peeks pixel platform poke poke2 poke4 position power prepend print printf puts rand remainder remove repeat replace routine_id sequence sin splice sprintf sqrt system system_exec tail tan task_clock_start task_clock_stop task_create task_list task_schedule task_self task_status task_suspend task_yield time trace xor_bits 
function_other=check_free_list db_close db_compress db_create db_create_table db_delete_record db_delete_table db_dump db_fatal_id db_find_key db_insert DB_LOCK_NO DB_OK db_open db_record_data db_record_key db_rename_table db_replace_data db_select db_select_table db_table_list db_table_size 
 
[settings] 
# default extension used when saving files 
extension=ex 
 
# if only single comment char is supported like # in this file, leave comment_close blank 
comment_open=-- 
comment_close= 
# this is an alternative way, so multiline comments are used 
#comment_open=/* 
#comment_close=*/ 
 
# set to false if a comment character/string should start at column 0 of a line, true uses any 
# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d 
	#command_example(); 
# setting to false would generate this 
#	command_example(); 
# This setting works only for single line comments 
comment_use_indent=true 
 
# context action command (please see Geany's main documentation for details) 
context_action_cmd=epiphany http://openeuphoria.org/search/results.wc?manual=1&s="%s" 
 
[build_settings] 
# %f will be replaced by the complete filename 
# %e will be replaced by the filename without extension 
# (use only one of it at one time) 
 
[build-menu] 
EX_00_LB=Run Source File with Euphoria Interpreter 
EX_00_CM=\seui ./%f 
EX_00_WD= 
FT_00_LB=Translate source to C code & Compile 
FT_00_CM=euc "%e" 
FT_00_WD= 
FT_01_LB=Bind source code with interpreter 
FT_01_CM=eubind "%e" 
FT_01_WD= 
FT_02_LB=Gather files into Eudist directory 
FT_02_CM=eudist "%f" 
FT_02_WD= 
EX_01_LB=Execute Compiled or Bound Code File 
EX_01_CM=\s./%e 
EX_01_WD= 
 

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

Search



Quick Links

User menu

Not signed in.

Misc Menu