zoukankan      html  css  js  c++  java
  • 重写了博客上的代码着色脚本


    目前支持 Delphi、C#、C/C++, 以后我学到什么会让它支持什么; 欢迎你也使用.

    使用方法:
    首先在 HTML 的 <head> 和 </head> 之间加上:

    然后:


    样例:


    样例效果:
    //Delphi 代码:
    program Project1;
    
    {$APPTYPE CONSOLE}
    
    uses
      SysUtils;
    
    begin
      try
        Writeln('Delphi 2009');
        Readln;
      except
        on E:Exception do
          Writeln(E.Classname, ': ', E.Message);
      end;
    end.
    
    //C# 代码:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("Visual C# 2008");
                Console.ReadLine();
            }
        }
    }
    
    //C/C++ 代码:
    //---------------------------------------------------------------------------
    
    #include 
    #pragma hdrstop
    
    #include 
    //---------------------------------------------------------------------------
    
    #pragma argsused
    int _tmain(int argc, _TCHAR* argv[])
    {
        printf("C++Builder 2009");
        getchar();
        return 0;
    }
    //---------------------------------------------------------------------------
    

  • 相关阅读:
    存储过程
    loadrunner性能测试——入门
    loadrunner性能测试——第一步 录制脚本(中文版)
    LoadRunner初级教程
    LoadRunner培训初级教程
    帮同学参加数学建模做的求点集间最短距离,时间复杂度300*300
    整数划分问题
    MOOC《Python网络爬虫与信息提取》学习过程笔记【requests库】第一周4-
    MOOC《Python网络爬虫与信息提取》学习过程笔记【requests库】第一周1-3
    我的博客园链接
  • 原文地址:https://www.cnblogs.com/del/p/1364357.html
Copyright © 2011-2022 走看看