Add editor_stop_format_chars ini option.
[midnight-commander.git] / src / editor / edit.h
blob0ff0af438040733b76a6d4f4bfe5afd260edaf0e
1 /*
2 Editor public API
3 */
5 /** \file edit.h
6 * \brief Header: editor public API
7 * \author Paul Sheer
8 * \date 1996, 1997
9 * \author Andrew Borodin
10 * \date 2009, 2012
13 #ifndef MC__EDIT_H
14 #define MC__EDIT_H
16 #include "lib/global.h" /* PATH_SEP_STR */
17 #include "lib/fileloc.h"
18 #include "lib/vfs/vfs.h" /* vfs_path_t */
20 /*** typedefs(not structures) and defined constants **********************************************/
22 #define DEFAULT_WRAP_LINE_LENGTH 72
24 /*** enums ***************************************************************************************/
26 /*** structures declarations (and typedefs of structures)*****************************************/
28 /* Editor widget */
29 struct WEdit;
30 typedef struct WEdit WEdit;
32 /*** global variables defined in .c file *********************************************************/
34 extern int option_word_wrap_line_length;
35 extern int option_typewriter_wrap;
36 extern int option_auto_para_formatting;
37 extern int option_fill_tabs_with_spaces;
38 extern int option_return_does_auto_indent;
39 extern int option_backspace_through_tabs;
40 extern int option_fake_half_tabs;
41 extern int option_persistent_selections;
42 extern int option_drop_selection_on_copy;
43 extern int option_cursor_beyond_eol;
44 extern gboolean option_cursor_after_inserted_block;
45 extern int option_line_state;
46 extern int option_save_mode;
47 extern int option_save_position;
48 extern int option_syntax_highlighting;
49 extern int option_group_undo;
50 extern char *option_backup_ext;
51 extern char *option_filesize_threshold;
52 extern char *option_stop_format_chars;
54 extern int edit_confirm_save;
56 extern int visible_tabs;
57 extern int visible_tws;
59 extern int simple_statusbar;
60 extern int option_check_nl_at_eof;
61 extern int show_right_margin;
63 /*** declarations of public functions ************************************************************/
65 /* used in main() */
66 void edit_stack_init (void);
67 void edit_stack_free (void);
69 gboolean edit_file (const vfs_path_t * file_vpath, long line);
70 gboolean edit_files (const GList * files);
72 char *edit_get_file_name (const WEdit * edit);
73 long edit_get_curs_col (const WEdit * edit);
74 const char *edit_get_syntax_type (const WEdit * edit);
76 /*** inline functions ****************************************************************************/
77 #endif /* MC__EDIT_H */