打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
如何在 "万一的 Delphi 博客" 回复自动格式化的着色代码?

1、先提交回复, 第一次提交时先不要代码, 可有文字;

2、再修改回复, 修改时包其中的 <br/> 换行标记, 也可以用 <br/> 添加新的换行;

3、然后按下面方式提交回复: <pre class="Delphi" style="font-size:13.8px; line-height: 132%;"><hr>//Delphi 代码...<hr></pre><pre class="cpp" style="font-size:13.8px; line-height: 132%;"><hr>//C/C++ 代码...<hr></pre><pre class="cs" style="font-size:13.8px; line-height: 132%;"><hr>//C# 代码...<hr></pre>

注意: 重新开启才能看到效果; 建议把上面文本加入到输入法的自定义文本里面.

查看回复效果: http://www.cnblogs.com/del/archive/2009/01/03/1367468.html#1419896
//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/C++ 代码:#include <stdio.h>#pragma hdrstop#include <tchar.h>#pragma argsusedint _tmain(int argc, _TCHAR* argv[]){  printf("C++Builder 2009");  getchar();  return 0;}

//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();    }  }}
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
[转]关于delphi Com 调用C# DLL的一点说明 - 元宝家园 --- 坚持理想,脚踏实地,不断学习 - 博客园
C# 第一天代码
delphi未来之路
Delphi中释放介绍
解决windows 7下Delphi 7打开旧工程时的乱码问题
C#中的using(){}
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服