mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-03 06:31:28 +03:00

highlighting. * edit/Makefile.am: Add choosesyntax.c. * edit/edit.c (edit_init): Set option_auto_syntax to 1 on every invokation of the editor. * edit/edit.h: Pass char*** to edit_load_syntax(). Add parameters for syntax dialog and override. * edit/editmenu.c (menu_options): Add menu option to override syntax hightlighting. * edit/editoptions.c (edit_options_dialog): Pass option_syntax_type to edit_load_syntax(). * edit/syntax.c (edit_read_syntax_file): Dynamically allocate and fill syntax list pnames. * edit/syntax.c (edit_load_syntax): Use char*** for syntax list. * src/wtools.h: #include "widget.h" and remove redundant declarations of Dlg_head and WListbox.