Mercurial > vim
comparison runtime/doc/syntax.txt @ 7176:30042ddff503
commit https://github.com/vim/vim/commit/60cce2fb736c8ff6fdb9603f502d3c15f1f7a25d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 13 23:21:27 2015 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 13 Oct 2015 23:30:05 +0200 |
parents | eff26a8620ce |
children | ffad29dc7eee |
comparison
equal
deleted
inserted
replaced
7175:27c1768bc708 | 7176:30042ddff503 |
---|---|
1 *syntax.txt* For Vim version 7.4. Last change: 2015 Aug 13 | 1 *syntax.txt* For Vim version 7.4. Last change: 2015 Sep 29 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
420 :runtime! syntax/2html.vim | 420 :runtime! syntax/2html.vim |
421 < | 421 < |
422 *:TOhtml* | 422 *:TOhtml* |
423 :[range]TOhtml The ":TOhtml" command is defined in a standard plugin. | 423 :[range]TOhtml The ":TOhtml" command is defined in a standard plugin. |
424 This command will source |2html.vim| for you. When a | 424 This command will source |2html.vim| for you. When a |
425 range is given, set |g:html_start_line| and | 425 range is given, this command sets |g:html_start_line| |
426 |g:html_end_line| to the start and end of the range, | 426 and |g:html_end_line| to the start and end of the |
427 respectively. Default range is the entire buffer. | 427 range, respectively. Default range is the entire |
428 | 428 buffer. |
429 If the current window is part of a |diff|, unless | 429 |
430 |g:html_diff_one_file| is set, :TOhtml will convert | 430 If the current window is part of a |diff|, unless |
431 all windows which are part of the diff in the current | 431 |g:html_diff_one_file| is set, :TOhtml will convert |
432 tab and place them side-by-side in a <table> element | 432 all windows which are part of the diff in the current |
433 in the generated HTML. With |g:html_line_ids| you can | 433 tab and place them side-by-side in a <table> element |
434 jump to lines in specific windows with (for example) | 434 in the generated HTML. With |g:html_line_ids| you can |
435 #W1L42 for line 42 in the first diffed window, or | 435 jump to lines in specific windows with (for example) |
436 #W3L87 for line 87 in the third. | 436 #W1L42 for line 42 in the first diffed window, or |
437 #W3L87 for line 87 in the third. | |
437 | 438 |
438 Examples: > | 439 Examples: > |
439 | 440 |
440 :10,40TOhtml " convert lines 10-40 to html | 441 :10,40TOhtml " convert lines 10-40 to html |
441 :'<,'>TOhtml " convert current/last visual selection | 442 :'<,'>TOhtml " convert current/last visual selection |
745 :let g:html_charset_override = {'ucs-4': 'UTF-32', 'utf-16': 'UTF-16'} | 746 :let g:html_charset_override = {'ucs-4': 'UTF-32', 'utf-16': 'UTF-16'} |
746 | 747 |
747 Note that documents encoded in either UTF-32 or UTF-16 have known | 748 Note that documents encoded in either UTF-32 or UTF-16 have known |
748 compatibility problems with some major browsers. | 749 compatibility problems with some major browsers. |
749 | 750 |
751 *g:html_font* | |
752 Default: "monospace" | |
753 You can specify the font or fonts used in the converted document using | |
754 g:html_font. If this option is set to a string, then the value will be | |
755 surrounded with single quotes. If this option is set to a list then each list | |
756 item is surrounded by single quotes and the list is joined with commas. Either | |
757 way, "monospace" is added as the fallback generic family name and the entire | |
758 result used as the font family (using CSS) or font face (if not using CSS). | |
759 Examples: > | |
760 | |
761 " font-family: 'Consolas', monospace; | |
762 :let g:html_font = "Consolas" | |
763 | |
764 " font-family: 'DejaVu Sans Mono', 'Consolas', monospace; | |
765 :let g:html_font = ["DejaVu Sans Mono", "Consolas"] | |
766 < | |
750 *convert-to-XML* *convert-to-XHTML* *g:html_use_xhtml* | 767 *convert-to-XML* *convert-to-XHTML* *g:html_use_xhtml* |
751 Default: 0. | 768 Default: 0. |
752 When 0, generate standard HTML 4.01 (strict when possible). | 769 When 0, generate standard HTML 4.01 (strict when possible). |
753 When 1, generate XHTML 1.0 instead (XML compliant HTML). | 770 When 1, generate XHTML 1.0 instead (XML compliant HTML). |
754 > | 771 > |