【发布时间】:2012-03-20 11:43:26
【问题描述】:
如何更改:
<p class="myClass">Lorem Ipsum (and maybe other nested tags)</p>
进入:
<code class="myClass">Lorem Ipsum (and maybe other nested tags)</code>
?
这是一个离线作业。这只是一个更新,但我需要将数千个 ps 更改为 codes。
【问题讨论】:
-
您是说要永久更新您的源 html 吗?大多数 IDE 都允许您在项目中的所有文件中进行查找和替换,Notepadd++ 等工具也是如此。
-
为什么您需要或计划在客户端在线甚至离线进行这些更改..?
-
@nnnnnn 是的,这是一个永久更新。 Find-replace 会找到
<p class="myClass">并将其替换为<code class="myClass">;但是结尾</p>呢(显然有结尾段落与<p class="myClass">不对应。 -
@hornetbzz 这是我需要克服的 iBooks 中的一个错误(Html 文件将成为 ePubs 的来源)。