Runcode插件
Runcode一款在WP上运行代码的插件,最近才启用,这篇文章试用这个插件,已安装启用可跳过。
在编辑器中插入如下代码:
<runcode width="400" height="100" size="12">
<div class="mod">第一个框中的文字</div>
<div class="mod2">缩进后的第一个框中的文字</div>
<dl>
<dt></dt>
<dd></dd>
<dd></dd>
</dl>
</runcode>
<runcode width="400" height="100" size="12">
<div class="mod">第一个框中的文字</div>
<div class="mod2">缩进后的第一个框中的文字</div>
<dl>
<dt></dt>
<dd></dd>
<dd></dd>
</dl>
</runcode>
//宽400,高100的代码运行框;<runcode width="400" height="100" size="16">
<div class="mod">第二个框中的16px文字</div>
</runcode>
//宽400,高100的代码运行框,文字大小16px;
<runcode width="600" height="100" size="14">
<div>
<script type="text/javascript">
alert("这是一个600x100的代码运行框");
</script>
</div>
</runcode>插件地址:http://wordpress.org/extend/plugins/runcode-by-soncy/
z-blog的路过 只能围观下。
理解了
做什么用得 我最近也在调试wp
RunCode插件对于做网站前端开发的朋友来说,非常有用。
RunCode插件对于做网站前端开发的朋友来说,非常有用。