免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5141 | 回复: 2

如何论坛的博客里面,在代码编辑框里面自动添加行号 [复制链接]

论坛徽章:
0
发表于 2011-06-14 00:07 |显示全部楼层
  1.    %p - insert pid into filename 添加pid

  2.     %u - insert current uid into filename 添加当前uid

  3.     %g - insert current gid into filename 添加当前gid

  4.     %s - insert signal that caused the coredump into the filename 添加导致产生core的信号

  5.     %t - insert UNIX time that the coredump occurred into filename 添加core文件生成时的unix时间

  6.     %h - insert hostname where the coredump happened into filename 添加主机名

  7.     %e - insert coredumping executable name into filename 添加命令名
复制代码
在博客里面怎么能够在像上面一样的代码编辑框里面在每一行前自动添加行号

论坛徽章:
0
发表于 2011-06-14 11:03 |显示全部楼层
在博客里面怎么能够在像上面一样的代码编辑框里面在每一行前自动添加行号
TerryJk 发表于 2011-06-14 00:07


    在插入代码当中选择您要插入的语言即可。

论坛徽章:
0
发表于 2011-06-14 12:51 |显示全部楼层
在插入代码当中选择您要插入的语言即可。
小雅贝贝 发表于 2011-06-14 11:03



    帖子里面选择代码后代码有对应的行号出来
但是在博客里面选择代码并选择语言后,只是把程序代码放在代码框里面,代码框里面的程序没有对应的行号出来
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP