• 您的位置我爱Aspx >> VB.Net >> OK.这个是完整的VB.NET的语法解析程序。比较长,不过支持全部的关键字,直接就可以用了。
  • OK.这个是完整的VB.NET的语法解析程序。比较长,不过支持全部的关键字,直接就可以用了。

  • 作者:aspxer  来源:internet  日期:2007-5-20 14:01:45  关键字:.net
  • //设定转换代码颜色

    //

    string ReplaceVBComment = TAG_COMMENT + "$1" + TAG_ECOMMENT;

    string ReplaceVBKeyword = TAG_FNTBLUE + "${char}" + TAG_EFONT;

    //开始转换

    for (int i=0;i<VB_Keyword.Length;i++)

    {

    string TempDirectives = @"(?<char>(\s" + VB_Keyword[i] + "|" + VB_Keyword[i] + @"\s))";

    Code = Regex.Replace(Code,TempDirectives,ReplaceVBKeyword,RegexOptions.IgnoreCase);

    Code = Regex.Replace(Code,@"@#(?<x>[^\r\n]*)",ReplaceVBComment);

    Code = Regex.Replace(Code,@"REM (?<x>[^\r\n]*)",ReplaceVBComment);

    }

    return Code;

    }

    }

    }

    我对这篇文章有话说?
  • 广告位招租,广告代号:content_468_15
  • 上一篇:字符串加解密的类(VB.NET Source Code)
    下一篇:Auto Complete combo Box(VB.NET Source Use API)