options.inc
来自「一个很有名的浏览器」· INC 代码 · 共 1,215 行 · 第 1/3 页
INC
1,215 行
/* Option definitions. *//* $Id: options.inc,v 1.167.2.7 2005/05/02 13:16:39 zas Exp $ *//* TODO: Autogenerate this file from something more human readable. --jonas *//* TODO: Make #ifdef FEATURE more consistent. *//* A few guidelines for this file: *//* 1. Keep options in alphabetical order with trees as the first children * of their parents. * 2. Keep in mind that descriptions should be readable on 80 wide terminals * so insert appropriate line breaks and newlines. * 3. If several command line options should share the same caption and * description they should be declared after another and only the last one * should have the caption and description defined. (ie. -h, -? and -help) * 4. When adding an alias put a comment about the date the alias was added. * 5. Love thy option system! :) */static struct option_info config_options_info[] = { INIT_OPT_TREE("", N_("Configuration system"), "config", 0, N_("Configuration handling options.")), INIT_OPT_INT("config", N_("Comments"), "comments", 0, 0, 3, 3, N_("Amount of comments automatically written to the config file:\n" "0 is no comments are written\n" "1 is only the \"blurb\" (name+type) is written\n" "2 is only the description is written\n" "3 is full comments are written")), INIT_OPT_INT("config", N_("Indentation"), "indentation", 0, 0, 16, 2, N_("Shift width of one indentation level in the configuration\n" "file. Zero means that no indentation is performed at all\n" "when saving the configuration.")), INIT_OPT_INT("config", N_("Saving style"), "saving_style", 0, 0, 3, 3, N_("Determines what happens when you tell ELinks to save options:\n" "0 is only values of current options are altered\n" "1 is values of current options are altered and missing options\n" " are added at the end of the file\n" "2 is the configuration file is rewritten from scratch\n" "3 is values of current options are altered and missing options\n" " CHANGED during this ELinks session are added at the end of\n" " the file")), INIT_OPT_BOOL("config", N_("Comments localization"), "i18n", 0, 0, N_("If set to 1, comments in the configuration file will be\n" "translated to the language used by UI. Note that if you have\n" "different language set in different terminals, the language\n" "used in the configuration file MAY be the same as on the\n" "terminal where you saved the file, but it should be generally\n" "considered unpredictable.")), INIT_OPT_BOOL("config", N_("Saving style warnings"), "saving_style_w", 0, 0, N_("This is internal option used when displaying a warning about\n" "obsolete config.saving_style. You shouldn't touch it.")), INIT_OPT_BOOL("config", N_("Show template"), "show_template", 0, 0, N_("Show template options in autocreated trees in the options\n" "manager and save them to the configuration file.")), /* Keep options in alphabetical order. */ INIT_OPT_TREE("", N_("Connections"), "connection", OPT_SORT, N_("Connection options.")), INIT_OPT_BOOL("connection", N_("Asynchronous DNS"), "async_dns", 0, 1, N_("Whether to use asynchronous DNS resolving.")), INIT_OPT_INT("connection", N_("Maximum connections"), "max_connections", 0, 1, 16, 10, N_("Maximum number of concurrent connections.")), INIT_OPT_INT("connection", N_("Maximum connections per host"), "max_connections_to_host", 0, 1, 8, 2, N_("Maximum number of concurrent connections to a given host.")), INIT_OPT_INT("connection", N_("Connection retries"), "retries", 0, 0, 16, 3, N_("Number of tries to establish a connection.\n" "Zero means try forever.")), INIT_OPT_INT("connection", N_("Receive timeout"), "receive_timeout", 0, 1, 1800, 120, N_("Receive timeout (in seconds).")),#ifdef CONFIG_IPV6 INIT_OPT_BOOL("connection", N_("Try IPv4 when connecting"), "try_ipv4", 0, 1, N_("Whether to try to connect to a host over IPv4.\n" "Note that if connection.try_ipv6 is enabled too,\n" "it takes precedence. And better do not touch this\n" "at all unless you are sure what are you doing.\n" "Note that you can also force a given protocol\n" "to be used on a per-connection basis by using an URL\n" "in the style of i.e. http4://elinks.or.cz/.")),#else INIT_OPT_BOOL("connection", N_("Try IPv4 when connecting"), "try_ipv4", 0, 1, N_("Whether to try to connect to a host over IPv4.\n" "Do not touch this option.\n" "Note that you can also force a given protocol\n" "to be used on a per-connection basis by using an URL\n" "in the style of i.e. http4://elinks.or.cz/.")),#endif#ifdef CONFIG_IPV6 INIT_OPT_BOOL("connection", N_("Try IPv6 when connecting"), "try_ipv6", 0, 1, N_("Whether to try to connect to a host over IPv6.\n" "Note that you can also force a given protocol\n" "to be used on a per-connection basis by using an URL\n" "in the style of i.e. http6://elinks.or.cz/.")),#endif INIT_OPT_INT("connection", N_("Timeout for non-restartable connections"), "unrestartable_receive_timeout", 0, 1, 1800, 600, N_("Timeout for non-restartable connections (in seconds).")), /* Keep options in alphabetical order. */ INIT_OPT_TREE("", N_("Document"), "document", OPT_SORT, N_("Document options.")), INIT_OPT_TREE("document", N_("Browsing"), "browse", 0, N_("Document browsing options (mainly interactivity).")), INIT_OPT_TREE("document.browse", N_("Access keys"), "accesskey", 0, N_("Options for handling of link access keys.\n" "An HTML document can use the ACCESSKEY attribute to assign\n" "an access key to an element. When an access key is pressed,\n" "the corresponding element will be given focus.")), INIT_OPT_BOOL("document.browse.accesskey", N_("Automatic links following"), "auto_follow", 0, 0, N_("Automatically follow a link or submit a form if appropriate\n" "accesskey is pressed - this is the standard behaviour, but it's\n" "considered dangerous.")), INIT_OPT_BOOL("document.browse.accesskey", N_("Display access key in link info"), "display", 0, 0, N_("Display access key in link info.")), INIT_OPT_INT("document.browse.accesskey", N_("Accesskey priority"), "priority", 0, 0, 2, 0, N_("Priority of 'accesskey' HTML attribute:\n" "0 is first try all normal bindings; if it fails, check accesskey\n" "1 is first try only frame bindings; if it fails, check accesskey\n" "2 is first check accesskey (this can be dangerous)")), INIT_OPT_TREE("document.browse", N_("Forms"), "forms", 0, N_("Options for handling of the forms interaction.")), INIT_OPT_BOOL("document.browse.forms", N_("Submit form automatically"), "auto_submit", 0, 1, N_("Automagically submit a form when enter is pressed with a text\n" "field selected.")), INIT_OPT_BOOL("document.browse.forms", N_("Confirm submission"), "confirm_submit", 0, 1, N_("Ask for confirmation when submitting a form.")), INIT_OPT_INT("document.browse.forms", N_("Default form input size"), "input_size", 0, 3, 300, HTML_DEFAULT_INPUT_SIZE, N_("Default form input size if none is specified.")), INIT_OPT_BOOL("document.browse.forms", N_("Insert mode"), "insert_mode", 0, 1, N_("The setting for this option affects how key presses are handled\n" "when one selects a text-input form-field. When enabled, one must\n" "explicitly 'enter' a selected text-field to edit it; this prevents\n" "a text field from capturing key presses, such as presses of a scroll key,\n" "when it is inadvertently selected. When disabled, key presses are always\n" "inserted into a selected text field.")), INIT_OPT_TREE("document.browse", N_("Images"), "images", 0, N_("Options for handling of images.")), INIT_OPT_INT("document.browse.images", N_("Display style for image tags"), "display_style", 0, 0, 3, 2, N_("Display style for image tags when displayed:\n" "0 means always display IMG\n" "1 means always display filename\n" "2 means display alt/title attribute if possible, IMG if not\n" "3 means display alt/title attribute if possible, filename if not")), INIT_OPT_INT("document.browse.images", N_("Maximum length for image filename"), "filename_maxlen", 0, 0, 500, 0, N_("Maximum length of image filename when displayed:\n" "0 means always display full filename\n" "1-500 means display filename with this maximal length;\n" " if it is longer, the middle is substituted by an asterisk")), /* Compatibility aliases. Added: 2004-12-15, 0.10pre3.CVS. It was * replaced by display_style and filename_maxlen options combination. */ INIT_OPT_ALIAS("document.browse.images", "file_tags", "document.browse.images.filename_maxlen"), INIT_OPT_INT("document.browse.images", N_("Image links tagging"), "image_link_tagging", 0, 0, 2, 1, N_("When to enclose image links:\n" "0 means never\n" "1 means never if alt or title are provided (old behavior)\n" "2 means always")), INIT_OPT_STRING("document.browse.images", N_("Image link prefix"), "image_link_prefix", 0, "[", N_("Prefix string to use to mark image links.")), INIT_OPT_STRING("document.browse.images", N_("Image link suffix"), "image_link_suffix", 0, "]", N_("Suffix string to use to mark image links.")), INIT_OPT_INT("document.browse.images", N_("Maximum length for image label"), "label_maxlen", 0, 0, 500, 0, N_("Maximum length of image label (alt/title):\n" "0 means always display full label\n" "1-500 means display label with this maximal length;\n" " if it is longer, the middle is substituted by an asterisk")), INIT_OPT_BOOL("document.browse.images", N_("Display links to images w/o alt"), "show_as_links", 0, 0, N_("Display links to images without an alt attribute. If this option\n" "is off, these images are completely invisible.")), INIT_OPT_BOOL("document.browse.images", N_("Display links to images"), "show_any_as_links", 0, 1, N_("Display links to any images in the document, regardless of them\n" "having an alt attribute or not. If this option is off, the alt\n" "attribute contents is shown, but as normal text, not selectable\n" "as a link.")), INIT_OPT_TREE("document.browse", N_("Links"), "links", 0, N_("Options for handling of links to other documents.")), INIT_OPT_TREE("document.browse.links", N_("Active link"), "active_link", 0, N_("Options for the active link.")), INIT_OPT_TREE("document.browse.links.active_link", N_("Colors"), "colors", 0, N_("Active link colors.")), INIT_OPT_COLOR("document.browse.links.active_link.colors", N_("Background color"), "background", 0, "#0000ff", N_("Default background color.")), INIT_OPT_COLOR("document.browse.links.active_link.colors", N_("Text color"), "text", 0, "black", N_("Default text color.")), INIT_OPT_BOOL("document.browse.links.active_link", N_("Enable color"), "enable_color", 0, 0, N_("Enable use of the active link background and text color\n" "settings instead of the link colors from the document.")), INIT_OPT_BOOL("document.browse.links.active_link", N_("Bold"), "bold", 0, 0, N_("Make the active link text bold.")), INIT_OPT_BOOL("document.browse.links.active_link", N_("Invert colors"), "invert", 0, 1, N_("Invert the fore- and background color so the link " "stands out.")), INIT_OPT_BOOL("document.browse.links.active_link", N_("Underline"), "underline", 0, 0, N_("Underline the active link.")), INIT_OPT_BOOL("document.browse.links", N_("Directory highlighting"), "color_dirs", 0, 1, N_("Highlight links to directories in FTP and local directory listing.")), INIT_OPT_BOOL("document.browse.links", N_("Number links"), "numbering", 0, 0, N_("Display numbers next to the links.")), INIT_OPT_INT("document.browse.links", N_("Handling of target=_blank"), "target_blank", 0, 0, 2, 0, N_("Define how to handle links having target=_blank set:\n" "0 means open link in current tab\n" "1 means open link in new tab in foreground\n" "2 means open link in new tab in background")), /* Compatibility aliases. Added: 2004-01-07, 0.9.0.CVS. */ INIT_OPT_ALIAS("document.browse.links", "typeahead_wraparound", "document.browse.search.wraparound"), INIT_OPT_ALIAS("document.browse.links", "typeahead_error", "document.browse.search.show_not_found"), INIT_OPT_BOOL("document.browse.links", N_("Use tabindex"), "use_tabindex", 0, 1, N_("Whether to navigate links using tabindex specified ordering.\n" "The TABINDEX attribute in HTML elements specifies the order\n" "in which links should receive focus when using the keyboard\n" "to navigating the document.")), INIT_OPT_INT("document.browse.links", N_("Number keys select links"), "number_keys_select_link", 0, 0, 2, 1, N_("Number keys select links rather than specify command prefixes. This\n" "is a tristate:\n" "0 means never\n" "1 means if document.browse.links.numbering = 1\n" "2 means always")), INIT_OPT_BOOL("document.browse.links", N_("Warn about maliciously crafted URIs"), "warn_malicious", 0, 1, N_("When following a link the user ID part of the URI is\n" "checked and if a maliciously crafted URI is detected a\n" "warning dialog will ask before following the link.")), /* TODO - this is somehow implemented by ff, but disabled * for now as it doesn't work. */ INIT_OPT_BOOL("document.browse.links", N_("Wrap-around links cycling"), "wraparound", /* 0 */ 0, 0, N_("When pressing 'down' on the last link, jump at the first one, and\n" "vice versa.")), INIT_OPT_TREE("document.browse", N_("Scrolling"), "scrolling", OPT_SORT, N_("Scrolling options.")), INIT_OPT_INT("document.browse.scrolling", N_("Horizontal step"), "horizontal_step", 0, 1, 9999, 8, N_("Number of columns to scroll when a key bound to scroll-left or scroll-\n" "right is pressed and no prefix was given.")), INIT_OPT_BOOL("document.browse.scrolling", N_("Extended horizontal scrolling"), "horizontal_extended", 0, 1, N_("Whether to allow horizontal scrolling when the document\n" "does not extend off the screen. Useful for copy/paste\n" "operations.")), INIT_OPT_INT("document.browse.scrolling", N_("Margin"), "margin", 0, 0, 20, 3, N_("Size of the virtual margin - when you click inside of that margin,\n" "document scrolls in that direction.")), INIT_OPT_INT("document.browse.scrolling", N_("Vertical step"), "vertical_step", 0, 1, 9999, 2, N_("Number of lines to scroll when a key bound to scroll-up or scroll-\n" "down is pressed and no prefix was given.")), INIT_OPT_TREE("document.browse", N_("Searching"), "search", 0, N_("Options for searching.")), INIT_OPT_BOOL("document.browse.search", N_("Case sensitivity"), "case", 0, 0, N_("Whether the search should match the document text while maintaining\n" "case sensitivity.")),#ifdef HAVE_REGEX_H INIT_OPT_INT("document.browse.search", N_("Regular expressions"), "regex", 0, 0, 2, 0, N_("Enable searching with regular expressions:\n" "0 for plain text searching\n" "1 for basic regular expression searches\n" "2 for extended regular expression searches")),#endif INIT_OPT_BOOL("document.browse.search", N_("Show search hit top or bottom dialogs"), "show_hit_top_bottom", 0, 1, N_("Whether to show a dialog when the search hits top or bottom of the\n" "document.")), INIT_OPT_BOOL("document.browse.search", N_("Wraparound"), "wraparound", 0, 1, N_("Wrap around when searching. Currently only used for typeahead.")), INIT_OPT_INT("document.browse.search", N_("Show not found"), "show_not_found", 0, 0, 2, 2, N_("How to inform the user when nothing is matched:\n" "0 means do nothing\n" "1 means beep the terminal\n" "2 means pop up message box")), INIT_OPT_INT("document.browse.search", N_("Typeahead searching"), "typeahead", 0, 0, 2, 0,
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?