Categories
Linux [11]
Archives
February 2008 |
My favorate vimguocongbin | 08/14 2007, 02:56
I have used vim for about two years. I love it more and more. Now, I have give up the usage of UltraEdit, which is so slow to start up, ugly in UI. Under windows, I don't use gvim. I install cygwin, by with I can take the advantage of cute command line tools. And I copy the short cut of vim to Send To folder, then I can combine the vim with Windows Explorer tighterly. When I want to open a file in explorere, I just need to right click it and select Send To->vim, the the file will be opened in black screen. (More)在Word里面使程序代码语法高亮的宏guocongbin | 12/07 2006, 02:20
最近我经常在word 里面写东西,发现程序代码拷贝到word 里面就没有了在代码编辑器里面的那种语法高亮的效果,感觉不爽。于是我上网搜了搜,发现目前在word 中实现语法高亮的方法主要是通过安装一个插件。由于我先天的对插件比较反感,所以自己动手,使用word 等office 软件都支持的VBA (Visual BAsic For Application) 写了一个语法高亮的宏。 这个宏的功能比较简单,就是利用得到文档中选中部分的代码,然后分词,判断该词的类别,然后着色。我现在使用的分词方法是VBA 提供的,大部分情况下和我们预期的比较一致。但是在某些情况下,比如连续的分隔符,这种分词方法会和C 语言分析器的分词结果不同的。 这个宏除了可以语法着色,还可以为代码标注行号。(听说侯捷在《word 排版艺术》一书中也有一个为代码添加行号的宏。不知道他的宏和我的宏是否雷同。如有雷同,纯属巧合:) (More)Vim真强guocongbin | 09/20 2006, 14:57
最近发现vim真强,它可以把程序代码格式化成彩色的html代码。 create symbol link on windowsguocongbin | 06/20 2006, 07:47
The symbol link of UNIX is a very useful tool. The counter part of it on windows is shortcut. But when you use command line interface on windows, shortcut isn't act completely as same as symbol link. (More)windows和unix文本文件格式的转换guocongbin | 04/14 2006, 15:57
在AIX上安装CVS服务器guocongbin | 04/14 2006, 15:46
在AIX配置cvs服务器的方法 (More)自定义类型文件在vc中的语法高亮guocongbin | 03/30 2006, 09:17
vc6对语言类型的识别是通过文件的扩展名进行的。所以如果一个自定义扩展名的文件,即使其关键字和c/c++完全一致,在vc中默认也是不会语法高亮的。 windows xp tipsguocongbin | 03/29 2006, 10:39
禁止在资源管理器中将zip文件显示为一个文件夹 regsvr32 /u zipfldr.dll Lock your XP screenguocongbin | 03/09 2006, 10:44
做一个属于自己的email地址图片guocongbin | 03/06 2006, 08:37dvd区域码的保护和破解guocongbin | 01/31 2006, 10:31
最近遇到了一个问题:朋友从国外带回来的本本,虽然有dvd光驱,但是却无法播放国内购买的dvd光盘。经过一番上网搜索之后,找到了一些资料,现在作个总结。 (More)让win2000的命令行窗口可以自动补全guocongbin | 12/16 2005, 18:21
你用win2000么?你用命令行窗口么?你想让你的命令行窗口具有自动补全功能么? (More)把MSN修好了guocongbin | 12/16 2005, 08:32
Trojan.Startpage木马的对策guocongbin | 12/01 2005, 22:38
Trojan.startpage se.dll searchassistant (More)搞定智联招聘的广告了guocongbin | 11/18 2005, 09:53
|