Mercurial > vim
comparison runtime/doc/syntax.txt @ 4681:2eb30f341e8d
Updated runtime files and translations.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 01 Jun 2013 14:50:56 +0200 |
parents | eb6ab7e78925 |
children | f824cb97eb92 |
comparison
equal
deleted
inserted
replaced
4680:fd8cc7fbc273 | 4681:2eb30f341e8d |
---|---|
1 *syntax.txt* For Vim version 7.3. Last change: 2013 Apr 05 | 1 *syntax.txt* For Vim version 7.3. Last change: 2013 May 31 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
379 | 379 |
380 This is not a syntax file itself, but a script that converts the current | 380 This is not a syntax file itself, but a script that converts the current |
381 window into HTML. Vim opens a new window in which it builds the HTML file. | 381 window into HTML. Vim opens a new window in which it builds the HTML file. |
382 | 382 |
383 After you save the resulting file, you can view it with any browser. The | 383 After you save the resulting file, you can view it with any browser. The |
384 colors should be exactly the same as you see them in Vim. | 384 colors should be exactly the same as you see them in Vim. You can jump to |
385 specific lines by adding (for example) #L123 or #123 to the end of the URL in | |
386 your browser's address bar (#123 only with javascript support). And with | |
387 |g:html_dynamic_folds| enabled, you can show or hide the text that is folded | |
388 in Vim. | |
385 | 389 |
386 You are not supposed to set the 'filetype' or 'syntax' option to "2html"! | 390 You are not supposed to set the 'filetype' or 'syntax' option to "2html"! |
387 Source the script to convert the current file: > | 391 Source the script to convert the current file: > |
388 | 392 |
389 :runtime! syntax/2html.vim | 393 :runtime! syntax/2html.vim |
422 | 426 |
423 If the current window is part of a |diff|, unless | 427 If the current window is part of a |diff|, unless |
424 |g:html_diff_one_file| is set, :TOhtml will convert | 428 |g:html_diff_one_file| is set, :TOhtml will convert |
425 all windows which are part of the diff in the current | 429 all windows which are part of the diff in the current |
426 tab and place them side-by-side in a <table> element | 430 tab and place them side-by-side in a <table> element |
427 in the generated HTML. | 431 in the generated HTML. When this happens you can jump |
432 to lines in specific windows with (for example) #W1L42 | |
433 for line 42 in the first diffed window, or #W3L87 for | |
434 line 87 in the third. Omitting the window ID will | |
435 default to the first window if javascript is enabled. | |
428 | 436 |
429 Examples: > | 437 Examples: > |
430 | 438 |
431 :10,40TOhtml " convert lines 10-40 to html | 439 :10,40TOhtml " convert lines 10-40 to html |
432 :'<,'>TOhtml " convert current/last visual selection | 440 :'<,'>TOhtml " convert current/last visual selection |
1238 | 1246 |
1239 | 1247 |
1240 ERLANG *erlang.vim* *ft-erlang-syntax* | 1248 ERLANG *erlang.vim* *ft-erlang-syntax* |
1241 | 1249 |
1242 Erlang is a functional programming language developed by Ericsson. Files with | 1250 Erlang is a functional programming language developed by Ericsson. Files with |
1243 the following extentions are recognized as Erlang files: erl, hrl, yaws. | 1251 the following extensions are recognized as Erlang files: erl, hrl, yaws. |
1244 | 1252 |
1245 The BIFs (built-in functions) are highlighted by default. To disable this, | 1253 The BIFs (built-in functions) are highlighted by default. To disable this, |
1246 put the following line in your vimrc: > | 1254 put the following line in your vimrc: > |
1247 | 1255 |
1248 :let g:erlang_highlight_bifs = 0 | 1256 :let g:erlang_highlight_bifs = 0 |
2284 | 2292 |
2285 For highlighting parent error ] or ): > | 2293 For highlighting parent error ] or ): > |
2286 | 2294 |
2287 let php_parent_error_close = 1 | 2295 let php_parent_error_close = 1 |
2288 | 2296 |
2289 For skipping an php end tag, if there exists an open ( or [ without a closing | 2297 For skipping a php end tag, if there exists an open ( or [ without a closing |
2290 one: > | 2298 one: > |
2291 | 2299 |
2292 let php_parent_error_open = 1 | 2300 let php_parent_error_open = 1 |
2293 | 2301 |
2294 Enable folding for classes and functions: > | 2302 Enable folding for classes and functions: > |