-
wordpress插件 runcode soncy修改版
发表于 2009年05月23日 2,312次阅读runcode很好用,但是有个地方不够完美,就是不能自定义代码框的大小,只能通过CSS来定死一个宽和高,如果定得不合适,当代码少时,框就显得空了很多,当代码多时,又感觉框太狭小了,所以花了点时间改造了一下,新增了width和height属性。
Welcome to report Bugs!
=============2009.05.26 更新=============
1,新增对[runcode][runcode]标签的支持,使用方法同以前的标签。
=============2009.05.25 更新=============
1,修复在默认情况下”>”会丢失的BUG,感谢Windmill提交bug。
=============2009.05.24 更新=============
1,修复自适应高度对自动换行的代码无效的BUG
2,新增另存代码的功能.
3,版本号改为1.1.3
=============2009.05.24 更新=============
1,新增法国,德国,俄罗斯,台湾等地的语言包。(google翻译的,呵呵
)
2,将语言文件中的Default Size更改为Default Font Size.
3,版本号改为1.1.2
=============2009.05.23 第二次更新=========
1,新增后台设置页面,可以自定义文本框默认宽度和默认字号。
=============2009.05.23更新==============
1,新增了size属性用于设置文本框字体大小,默认12像素。
2,新增自适应高度的功能,如果不设定height参数或者设置height=”auto”,文本框将自适应高度。
使用方法:
1,下载插件并上传到插件目录,安装激活。
2,到WP后台设置默认宽度和默认字号。
3,发布日志时的使用:- <runcode width="720" height="100">
- <div class="xx">yy</div>
- </runcode>
- 这样定义后输入框的宽度就是720像素,高度就是100像素了。
- <runcode width="720" height="auto" size="14">
- <div class="xx">yy</div>
- </runcode>
- 这样定义后输入框的宽度就是720像素,字号14像素,高度就是自适应的了。
- [runcode width="720" height="100"]
- <div class="xx">yy</div>
- [/runcode]
- 也可以使用[runcode][/runcode]标签
演示:
提示:你可以先修改部分代码再运行。
提示:你可以先修改部分代码再运行。
提示:你可以先修改部分代码再运行。
下载地址
本站:http://www.eyike.com/download/runcode-by-soncy.zip
wordpress官方:http://wordpress.org/extend/plugins/runcode-by-soncy/感谢您的浏览,如果您喜欢本站,可以通过Rss订阅本站,如需转载,请注明出处,谢谢!
相关文章
11 responses to “wordpress插件 runcode soncy修改版”

-
Hello,
There is a problem with runcode. It does not close with the “>” sign. You can see it at the test sample at my Blog. URL: http://dfoolonthehill.com/?p=3190
Do you know why this is happening and do you have a solution for it?
Thank You.[回复]
-
Hello, I wish to let you know there is a problem with runcode. It omits the “>” sign in the code. You can see it at my Blog test sample. URL: http://dfoolonthehill.com/?p=3190 Do you know why this is happening and what is the solution?
Thank You[回复]
2 Trackbacks / Pingbacks
-
[...] 我这个blog中的代码运行插件用的是runcode soncy修改版 ,生成在页面中的html结构是一个textarea文本域,这个插件可以设置textarea的width和height,比较方便,不过在验证页面的时候发现,如果textarea没有定义rows和cols属性的话,则通不过w3c的xhtml验证。但是rows和cols是根据字符的个数来定义宽高的,不如通过css来设置width和height精确,所以我最后在插件的php文件里的textarea标签上加了rows=”auto”和cols=”auto”,让它生成的textarea都加上这两个属性,这时候已经可以通过w3c的验证了,不过 Html Validator扩展验证的时候发现,发现rows和cols的值为auto是不规范的,通不过Tidy的验证。 [...]
-
[...] 标签或<runcode></runcode>标签,标签中间内容便是要运行的HTML/Javascript/CSS代码,标签支持height、width、size属性(都是数字),分别对应文本框的高度、宽度和字体大小,具体例子请看插件作者的文章《wordpress插件 runcode soncy修改版》。 [...]
发表评论
左手烟