日期:2014-05-18  浏览次数:20423 次

请问CSDN这个源代码嵌入的标签是怎么做的
我想在网页上显示IDE编译器里的那种源码效果
C# code

        public string GetDiskID()
        {

            String HDid = null;
            ManagementClass cimobject1 = new ManagementClass("Win32_DiskDrive");
            ManagementObjectCollection moc1 = cimobject1.GetInstances();
            foreach (ManagementObject mo in moc1)
            {
                HDid = mo.Properties["Model"].Value as string;
                foreach (PropertyData var in mo.Properties)
                {
                    Console.WriteLine("属性名: "+var.Name+"值: "+var.Value);
                }
            }



------解决方案--------------------
FCKEdit
------解决方案--------------------
网上搜索一下“FCKEditor 语法高亮”:

http://www.google.com/search?q=FCKEditor%20%E8%AF%AD%E6%B3%95%E9%AB%98%E4%BA%AE&hl=zh-CN&newwindow=1&lr=lang_zh-CN&nxpt=20.708266809388929640626


------解决方案--------------------
下载地址:http://www.svnhost.cn/Download/Detail-237.shtml