第一次使用代码着色

代码着色效果一览

用 VC 建了个 HelloWorld 的工程,看看在博文中代码片段“着色”之后的效果吧,Cool!

SyntaxHighlighter 的着色效果

// HelloWorld.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

int main(int argc, char* argv[])
{
	printf(_T("Hello World!\n"));
	return 0;
}

VSPaste 的着色效果

// HelloWorld.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

int main(int argc, char* argv[])
{
    printf(_T("Hello World!\n"));
    return 0;
}

CNBlogs.CodeHighlighter 的着色效果

// HelloWorld.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

int main(int argc, char* argv[])
{
    printf(_T("Hello World!\n"));
    return 0;
}

系列文章索引:http://www.cnblogs.com/duxiuxing/archive/2012/05/01/2477798.html
原文地址:https://www.cnblogs.com/duxiuxing/p/2210624.html