----------------解决方案--------------------------------------------------------
有啊,如果是注释中的,非 assiic 编码的,都是可以被是识别为注释的,而其他时候,非 assiic 码在 c 语言中都是非法的,因此被识别为了 errorchar.
----------------解决方案--------------------------------------------------------
/*****************************************************************
** HighlightCodeV3.0 software by yzfy(雨中飞燕) http://yzfy.org **
*****************************************************************/
// 包含头文件
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
// 函数实现
void main()
{
// 函数开始了 \
printf("hello world !\r\n");
getch();
}
** HighlightCodeV3.0 software by yzfy(雨中飞燕) http://yzfy.org **
*****************************************************************/
// 包含头文件
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
// 函数实现
void main()
{
// 函数开始了 \
printf("hello world !\r\n");
getch();
}
这个呢?你自己那边试试看
----------------解决方案--------------------------------------------------------
// 的注释目前不支持的
----------------解决方案--------------------------------------------------------
因此其名字都是 cscanner, 而不是 cppscanner.
----------------解决方案--------------------------------------------------------
要加也是很容易的,等下了再发下。
----------------解决方案--------------------------------------------------------
C99早已加入了对//注释的支持啦
[color=white]
----------------解决方案--------------------------------------------------------
呵呵,等我改下了。
----------------解决方案--------------------------------------------------------
对 // 单行注释的支持已经改好了
cscanner.txt 中加入了识别规则:
+-------------------------------------------------------------------------+
"//".* { HTMLEncodeAndOutput(fpout, yytext, COMMENT); }
+-------------------------------------------------------------------------+
大家可以试下。
----------------解决方案--------------------------------------------------------
/*****************************************************************
** HighlightCodeV3.0 software by yzfy(雨中飞燕) http://yzfy.org **
*****************************************************************/
// 包含头文件
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
// 函数实现
void main()
{
// 函数开始了 \
printf("hello world !\r\n");
printf("hello world !\r\n");
getch();
}
** HighlightCodeV3.0 software by yzfy(雨中飞燕) http://yzfy.org **
*****************************************************************/
// 包含头文件
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
// 函数实现
void main()
{
// 函数开始了 \
printf("hello world !\r\n");
printf("hello world !\r\n");
getch();
}
你试试这个的结果和偶的有什么不同。。。
PS。关键字设置为纯蓝色好不
[color=white]
[[it] 本帖最后由 雨中秣燕 于 2008-5-18 21:24 编辑 [/it]]
----------------解决方案--------------------------------------------------------