ajwillia-ms pushed a commit to branch master. http://git.enlightenment.org/tools/edi.git/commit/?id=c89a211a9448262ee8ec68fac0c5132712bbfc81
commit c89a211a9448262ee8ec68fac0c5132712bbfc81 Author: Andy Williams <[email protected]> Date: Sat Mar 4 15:41:42 2017 +0000 syntax: trigger eolian highlighting --- src/bin/editor/edi_editor.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/editor/edi_editor.c b/src/bin/editor/edi_editor.c index 66b7877..d32cee2 100644 --- a/src/bin/editor/edi_editor.c +++ b/src/bin/editor/edi_editor.c @@ -1003,6 +1003,11 @@ edi_editor_add(Evas_Object *parent, Edi_Mainview_Item *item) elm_code_widget_syntax_enabled_set(widget, EINA_TRUE); } elm_code_file_open(code, item->path); + if (eina_str_has_extension(item->path, ".eo")) + { + code->file->mime = "text/x-eolian"; + elm_code_widget_syntax_enabled_set(widget, EINA_TRUE); + } evas_object_size_hint_weight_set(widget, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(widget, EVAS_HINT_FILL, EVAS_HINT_FILL); --
