| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 20103 人关注过本帖, 2 人收藏
标题:★☆发布简易语法高亮(第9版0719更新,通用免费版本,附部分源代码)☆★
只看楼主 加入收藏
brague
该用户已被删除
收藏
得分:0 
提示: 作者被禁止或删除 内容自动屏蔽
2008-05-29 23:16
Loli
Rank: 1
来 自:飞燕算法群46520219
等 级:新手上路
帖 子:348
专家分:0
注 册:2008-5-27
收藏
得分:0 
不用谢
发代码前高亮一下,其它人会谢谢你

" border="0" />[color=white]
2008-06-07 23:19
xiaotnai
Rank: 1
等 级:新手上路
帖 子:38
专家分:0
注 册:2007-6-8
收藏
得分:0 
传说中的伪开源?

2008-06-08 01:54
海纳百川
Rank: 1
来 自:湖北荆州
等 级:新手上路
帖 子:186
专家分:5
注 册:2007-10-2
收藏
得分:0 
不错我顶一个哦

2008-06-08 10:22
oaipunk
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2008-6-8
收藏
得分:0 
先收下了
2008-06-08 17:26
江湖无痕
Rank: 1
等 级:新手上路
帖 子:23
专家分:0
注 册:2008-4-4
收藏
得分:0 
很好好强大的!
2008-06-08 20:56
Loli
Rank: 1
来 自:飞燕算法群46520219
等 级:新手上路
帖 子:348
专家分:0
注 册:2008-5-27
收藏
得分:0 
有更新,加入了更多的关键字,和一些常用的函数进行高亮



[color=white]
2008-06-14 14:54
VxWorks
Rank: 3Rank: 3
来 自:WindRiver
等 级:论坛游民
威 望:6
帖 子:859
专家分:68
注 册:2007-11-24
收藏
得分:0 
看到你更新了就想拿我的fish和你比一下,看下面的测试用例:

/*****************************************************************
** HighlightCodeV3.0 software by yzfy(雨中飞燕) http:// **
*****************************************************************/
#define keyword_test:

auto enum restrict unsigned break extern return
void case float short volatile char for signed
while const goto sizeof
_Bool continue if static
_Complex default inline struct _Imaginary do  int
switch double long typedef else register  union

int
test()
{
   
int a=10L;
    int b=0x2efd+0X0001+0x98ga+22h;

    double f1=0.2e3+5.4E5+5E-3+5E+3+5.+.5;

    char *string="hello\n";     /*hello world*/    
   
wchar_t a=L"hello";    // 你好
   
return 0;
}




下面是fish的结果:
#define keyword_test:

auto enum restrict unsigned break extern return
void case float short volatile char for signed
while const goto sizeof _Bool continue if static
_Complex default inline struct _Imaginary do  int
switch double long typedef else register  union

int test()
{
        int a=10L;
        int b=0x2efd+0X0001+0x98ga+22h;

        double f1=0.2e3+5.4E5+5E-3+5E+3+5.+.5;

        char *string="hello\n";         /*hello world*/        
        wchar_t a=L"hello";        // 你好
        return 0;
}


偶的fish兼容C99标准,偶不由得要偷偷乐一下。

为了防止世界被破坏,为了守护世界的和平,贯彻爱与真实的邪恶,可爱又迷人的反派角色,VxWorks!
Don't ask me any question.I'm just here to buy soy sauce.
2008-06-14 18:03
flyue
Rank: 10Rank: 10Rank: 10
来 自:江南西道
等 级:贵宾
威 望:19
帖 子:3465
专家分:1563
注 册:2006-6-20
收藏
得分:0 
我发个

/*****************************************************************
** HighlightCodeV3.0 software by yzfy(雨中飞燕) http:// **
*****************************************************************/

#define keyword_test:

auto enum restrict unsigned break extern return
void case float short volatile char for signed
while const goto sizeof _Bool continue if static
_Complex default inline struct _Imaginary do  int
switch double long typedef else register  union

int test()
{
    int a=10L;
    int b=0x2efd+0X0001+0x98ga+22h;

    double f1=0.2e3+5.4E5+5E-3+5E+3+5.+.5;

    char *string="hello\n";     /*hello world*/   
    wchar_t a=L"hello";    // 你好
    return 0;
}


[[it] 本帖最后由 flyue 于 2008-6-14 18:36 编辑 [/it]]

天之道,损有余而补不足.人之道则不然,损不足以奉有余.孰能有余以奉天下,唯有道者.
2008-06-14 18:34
flyue
Rank: 10Rank: 10Rank: 10
来 自:江南西道
等 级:贵宾
威 望:19
帖 子:3465
专家分:1563
注 册:2006-6-20
收藏
得分:0 
hohohoho
我前段时间也做了一个,是按VC6.0的样本来做地

   bool    bool
   char    char
   int    int
   float    float
   double    double
   signed    signed
   unsigned    unsigned
   short    short
   long    long
   struct    struct
   enum    enum
   union    union
   delete    delete
   new    new
   true    true
   false    false
   const    const
   register    register
   auto    auto
   static    static
   extern    extern
   volatile    volatile
   typedef    typedef
   for    for
   while    while
   do    do
   switch    switch
   case    case
   default    default
   break    break
   continue    continue
   try    try
   throw    throw
   catch    catch
   finally    finally
   if    if
   else    else

   operator    operator
   const_cast    const_cast
   static_cast    static_cast
   dynamic_cast    dynamic_cast
   reinterpret_cast    reinterpret_cast
   sizeof    sizeof
   typeid    typeid
   typename    typename
   type_info    type_info
   bad_cast    bad_cast
   bad_typeid    bad_typeid

   using    using
   namespace    namespace
   class    class
   __single_inheritance    __single_inheritance
   __multiple_inheritance    __multiple_inheritance
   __virtual_inheritance    __virtual_inheritance
   private    private
   protected    protected
   public    public
   friend    friend
   virtual    virtual
   this    this
   explicit    explicit
   except    except
   template    template
   inline    inline
   mutable    mutable

   void    void
   return    return
   goto    goto
   //         

   __int8    __int8
   __int16    __int16
   __int32    __int32
   __int64    __int64

   allocate    allocate
   dllexport    dllexport
   dllimport    dllimport
   selectany    selectany
   uuid    uuid
   property    property
   nothrow    nothrow
   thread    thread
   naked    naked

   __asm    __asm
   _asm    _asm
   __declspec    __declspec
   _declspec    _declspec
   __cdecl    __cdecl
   _cdecl    _cdecl
   __stdcall    __stdcall
   _stdcall    _stdcall
   __fastcall    __fastcall
   _fastcall    _fastcall
   __try    __try
   _try    _try
   __finally    __finally
   _finally    _finally
   __based    __based
   _based    _based
   __leave    __leave
   _leave    _leave
   __except    __except
   _except    _except
   __inline    __inline
   _inline    _inline
   __uuidof    __uuidof

天之道,损有余而补不足.人之道则不然,损不足以奉有余.孰能有余以奉天下,唯有道者.
2008-06-14 18:34
快速回复:★☆发布简易语法高亮(第9版0719更新,通用免费版本,附部分源代码) ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.024491 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved