That again, the C ++ language source is converted to HTML (Vim implementation, can be used in java, perl, python, etc. in multip

xiaoxiao2021-03-06  143

Qiankun smile [smileonce] smileonce@126.com ?? 2004-7-23 All rights reprinted, please indicate http://blog.9cbs.net/smileonce

Recently learned Vim, I found that he is a good stuff, powerful, all. I estimate that if my native language is ENGLISH, it is estimated that it will use it without being thrown. Ok, I just want to say, how to use a command to implement the C language source to the HTML file. (PS: VIM is one of the most unique editors in the UNIX / Linux environment, and there is also its Windows version, but there are not many people using it on Windows)

First, make sure you are in the grammar highlight, open the source code to be converted with VIM, see if there is color? If not, use the command :: syntax enable to open the vim's syntax to the function

Then, execute the command :: Source $ Vimruntime / Syntax / 2html.vim

OKEY, VIM displays the conversion C source code in another window. Great me, save it, save the command :: Write myhtml.html

Because Vim supports almost various languages, the syntax of the script is highlighted, so they can convert them into HTML. It is very convenient, Vim features are particularly powerful, customizable, and the Chinese documentation of VIM6.3 (more than 400 pages of the user manual), it is completely open source, so recommended programmers use it. Simplify your work: P

Posted on August 12, 2004 11:34 PM

转载请注明原文地址:https://www.9cbs.com/read-127688.html

New Post(0)