下面方法是让设置的关键字高亮显示,考虑到了注释与字符串的影响,所以备用,以便将来能够用到.privatestaticvoidColorizeCode(RichTextBoxrtb){string[]keywords={"as","do","if","in","is","for","int","new","out","ref","try","base","bool","byte","case","char","else","enum","goto","lock","long","null"...
查看全文