Mercurial > vim
comparison runtime/doc/syntax.txt @ 2681:85c5a72551e2
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 08 Jan 2011 16:06:37 +0100 |
parents | 916c90b37ea9 |
children | b6471224d2af |
comparison
equal
deleted
inserted
replaced
2680:27621abffed2 | 2681:85c5a72551e2 |
---|---|
472 up as you see it in Vim, but without wrapping. If you prefer wrapping, at the | 472 up as you see it in Vim, but without wrapping. If you prefer wrapping, at the |
473 risk of making some things look a bit different, use: > | 473 risk of making some things look a bit different, use: > |
474 :let g:html_no_pre = 1 | 474 :let g:html_no_pre = 1 |
475 This will use <br> at the end of each line and use " " for repeated | 475 This will use <br> at the end of each line and use " " for repeated |
476 spaces. | 476 spaces. |
477 | |
478 If you do use the "<pre>" tags, <Tab> characters in the text are included in | |
479 the generated output if they will have no effect on the appearance of the | |
480 text and it looks like they are in the document intentionally. This allows for | |
481 the HTML output to be copied and pasted from a browser without losing the | |
482 actual whitespace used in the document. | |
483 | |
484 Specifically, <Tab> characters will be included if the 'tabstop' option is set | |
485 to the default of 8, 'expandtab' is not set, and if neither the foldcolumn nor | |
486 the line numbers are included in the HTML output (see options above). When any | |
487 of these conditions are not met, any <Tab> characters in the text are expanded | |
488 to the appropriate number of spaces in the HTML output. | |
489 | |
490 When "<pre>" is included, you can force |:TOhtml| to keep the tabs even if the | |
491 other conditions are not met with: > | |
492 :let g:html_expand_tabs = 0 | |
493 Note that this can easily break text alignment and indentation in the HTML. | |
494 | |
495 Force tabs to be expanded even when they would be kept using: > | |
496 :let g:html_expand_tabs = 1 | |
477 | 497 |
478 For diff mode on a single file (with g:html_diff_one_file) a sequence of more | 498 For diff mode on a single file (with g:html_diff_one_file) a sequence of more |
479 than 3 filler lines is displayed as three lines with the middle line | 499 than 3 filler lines is displayed as three lines with the middle line |
480 mentioning the total number of inserted lines. If you prefer to see all the | 500 mentioning the total number of inserted lines. If you prefer to see all the |
481 inserted lines as with the side-by-side diff, use: > | 501 inserted lines as with the side-by-side diff, use: > |