So I copied the "16 02:02" and saved as UserDefineLang.xml and dropped it in with the other .xml files, assuming the .exe would pick it up.
Tried lots of variations of the file, including changing colours. When I click Language/User Defined, it shifts in a single space margin, and that's it.
Is this a template that I should derive langs.xml and stylers.xml entries from?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Two months ago Euphoria cracked the top 50 used programming languages at 49.
One month ago it hit 34.
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
The keywords of Euphoria's imminent Version 4.0 can be found here.
http://openeuphoria.org/docs/
This is a try, include it in your UserDefineLang.xml:
<UserLang nairsttrme="Euphoria" ext="ex exw exu">
<Settings>
<Global caseIgnored="no" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">"00"00</Keywords>
<Keywords name="Folder+"></Keywords>
<Keywords name="Folder-"></Keywords>
<Keywords name="Operators">& ( ) * , . / [ ] { } + < = ></Keywords>
<Keywords name="Comment"> 1 2 0--</Keywords>
<Keywords name="Words1">function for end if return then while procedure else do</Keywords>
<Keywords name="Words2">abort allocate allocate_low allocate_string allow_break all_palette and_bits append arccos arcsin arctan atom atom_to_float32 atom_to_float64 bits_to_int bk_color bytes_to_int call call_back call_func call_proc chdir check_break clear_screen close command_line compare cos crash_file crash_message crash_routine current_dir custom_sort c_func c_proc date define_c_func define_c_proc define_c_var dir display_image dos_interrupt draw_line ellipse equal find find_from float32_to_atom float64_to_atom floor flush fn free free_console free_low get getc getenv gets get_active_page get_all_palette get_bytes get_display_page get_key get_mouse get_pixel get_position get_vector graphics_mode i instance integer int_to_bits int_to_bytes length lock_file lock_memory log lower machine_func machine_proc match match_from mem_copy mem_set message_box mouse_events mouse_pointer not_bits object open open_dll or_bits palette peek peek4s peek4u PI pixel platform poke poke4 polygon position power prepend pretty_print print printf profile prompt_number prompt_string puts rand read_bitmap register_block remainder repeat reverse routine_id save_bitmap save_image save_screen scroll seek sequence set_active_page set_display_page set_rand set_vector sin sleep sort sound sprint sprintf sqrt st system system_exec tan task_clock_start task_clock_stop task_create task_list task_schedule task_self task_status task_suspend task_yield text_color tick_rate time trace unlock_file unregister_block upper use_vesa value video_config wait_key walk_dir where wildcard_file wildcard_match wrap xor_bits </Keywords>
<Keywords name="Words3">or true false and</Keywords>
<Keywords name="Words4"></Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" />
<WordsStyle name="KEYWORD2" styleID="6" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD3" styleID="7" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD4" styleID="8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="NUMBER" styleID="4" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="800080" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER1" styleID="14" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
</Styles>
</UserLang>
Best, Simon
Sorry, name parameter was not correct.
<UserLang name="Euphoria" ext="ex exw exu">
<Settings>
<Global caseIgnored="no" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">"00"00</Keywords>
<Keywords name="Folder+"></Keywords>
<Keywords name="Folder-"></Keywords>
<Keywords name="Operators">& ( ) * , . / [ ] { } + < = ></Keywords>
<Keywords name="Comment"> 1 2 0--</Keywords>
<Keywords name="Words1">function for end if return then while procedure else do</Keywords>
<Keywords name="Words2">abort allocate allocate_low allocate_string allow_break all_palette and_bits append arccos arcsin arctan atom atom_to_float32 atom_to_float64 bits_to_int bk_color bytes_to_int call call_back call_func call_proc chdir check_break clear_screen close command_line compare cos crash_file crash_message crash_routine current_dir custom_sort c_func c_proc date define_c_func define_c_proc define_c_var dir display_image dos_interrupt draw_line ellipse equal find find_from float32_to_atom float64_to_atom floor flush fn free free_console free_low get getc getenv gets get_active_page get_all_palette get_bytes get_display_page get_key get_mouse get_pixel get_position get_vector graphics_mode i instance integer int_to_bits int_to_bytes length lock_file lock_memory log lower machine_func machine_proc match match_from mem_copy mem_set message_box mouse_events mouse_pointer not_bits object open open_dll or_bits palette peek peek4s peek4u PI pixel platform poke poke4 polygon position power prepend pretty_print print printf profile prompt_number prompt_string puts rand read_bitmap register_block remainder repeat reverse routine_id save_bitmap save_image save_screen scroll seek sequence set_active_page set_display_page set_rand set_vector sin sleep sort sound sprint sprintf sqrt st system system_exec tan task_clock_start task_clock_stop task_create task_list task_schedule task_self task_status task_suspend task_yield text_color tick_rate time trace unlock_file unregister_block upper use_vesa value video_config wait_key walk_dir where wildcard_file wildcard_match wrap xor_bits </Keywords>
<Keywords name="Words3">or true false and</Keywords>
<Keywords name="Words4"></Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" />
<WordsStyle name="KEYWORD2" styleID="6" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD3" styleID="7" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD4" styleID="8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="NUMBER" styleID="4" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="800080" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER1" styleID="14" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
</Styles>
</UserLang>
Sorry. Back from holidays now.
So I copied the "16 02:02" and saved as UserDefineLang.xml and dropped it in with the other .xml files, assuming the .exe would pick it up.
Tried lots of variations of the file, including changing colours. When I click Language/User Defined, it shifts in a single space margin, and that's it.
Is this a template that I should derive langs.xml and stylers.xml entries from?
Aside from needing code formatted with whitespace separating each element so the colouring will kick in, it works fine.
Also, operator - overrides our comment line symbol --
OK Found view/user define dialog. Let you know.