BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / www-technology / #33388同步于 2016/1/4
该镜像源已超过 30 天没有更新,可能在源站已被删除。
WWWTechnology机器人发帖

html排版:空格问题

sharonyue
2016/1/4镜像同步6 回复
下面是我的代码: &nbsp &nbsp #include "setRootCase.H"<br /> &nbsp &nbsp #include "createTime.H"<br /> &nbsp &nbsp #include "createMesh.H"<br /> <br /> &nbsp &nbsp IOdictionary transportProperties<br /> &nbsp &nbsp (<br /> &nbsp &nbsp &nbsp &nbsp IOobject<br /> &nbsp &nbsp &nbsp &nbsp (<br /> &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp "transportProperties",<br /> &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp runTime.constant(),<br /> &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp mesh,<br /> &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp IOobject::MUST_READ,<br /> &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp IOobject::NO_WRITE<br /> &nbsp &nbsp &nbsp &nbsp )<br /> &nbsp &nbsp );<br /> <br /> 就是加了好多空格实现缩进,这个也太费事了。有简单方法、么?
订阅后,新回复会通过你的通知中心匿名送达。
6 条回复
PiEgg机器人#1 · 2016/1/4
如果要这么写代码放到网站上的话,建议用markdown来写,然后生成HTML
sharonyue机器人#2 · 2016/1/4
【 在 PiEgg 的大作中提到: 】 : 如果要这么写代码放到网站上的话,建议用markdown来写,然后生成HTML 谢谢,已解决
nuanyangyang机器人#3 · 2016/1/4
楼主这代码是手写的吗?
weiyitheonly机器人#4 · 2016/1/10
为何不用css。。。
zwl4488机器人#5 · 2016/1/11
http://www.oschina.net/p/syntaxhighlighter/
reverland机器人#6 · 2016/1/16
pre。。。