soncy的七分责任田,种点瓜果蔬菜和杂草

wordpress插件 runcode soncy修改版

发表于 2009年05月23日 soncy 2,805次阅读

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翻译的,呵呵 :smile: )
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,发布日志时的使用:

  1. <runcode width="720" height="100">
  2.         <div class="xx">yy</div>
  3. </runcode>
  4. 这样定义后输入框的宽度就是720像素,高度就是100像素了。
  5.  
  6. <runcode width="720" height="auto" size="14">
  7.         <div class="xx">yy</div>
  8. </runcode>
  9. 这样定义后输入框的宽度就是720像素,字号14像素,高度就是自适应的了。
  10.  
  11. [runcode width="720" height="100"]
  12.         <div class="xx">yy</div>
  13. [/runcode]
  14. 也可以使用[runcode][/runcode]标签

演示:

提示:你可以先修改部分代码再运行。

提示:你可以先修改部分代码再运行。

提示:你可以先修改部分代码再运行。

下载地址
本站:http://www.eyike.com/download/runcode-by-soncy.zip
wordpress官方:http://wordpress.org/extend/plugins/runcode-by-soncy/

感谢您的浏览,如果您喜欢本站,可以通过Rss订阅本站,如需转载,请注明出处,谢谢!

13条评论 RSS 图标

修改版下载不了,能给发到邮箱一份吗?

[回复]

恩,下载地址有点问题,您可以到官网 http://wordpress.org/extend/plugins/runcode-by-soncy/ 下载

[回复]

在后台直接添加插件之后 不能正常运行
function changeTsize(){document.getElementById(“runcode_44q6Cu”).style.height = document.getElementById(“runcode_44q6Cu”).scrollHeight + “px”;}window.setTimeout(changeTsize,0); 提示:你可以先修改部分代码再运行。 …
请教一下 是怎么回事

[回复]

能截图或者发个地址看看吗? :sad:

[回复]

:lol: 在WP2.9.1下测试成功

[回复]

wp 2.9.2 测试成功 :lol:

[回复]

感谢使用~

[回复]

很强的插件,希望一直能保持更新~ :grin:

[回复]

请问楼主“3,发布日志时的使用:”这句话后面那个代码框(双击切换行数显示)的是什么插件?

[回复]

coolcode,一个代码高亮插件。

[回复]

:mrgreen: 不错,我很喜欢这个PlugIn,谢谢LZ刻苦钻研和无私奉献精神.

[回复]

猫小样 发表于2009年07月18日11:17

下载的默认的是英文,请问如何把运行,复制,另存代码改成中文呢?

[回复]

如果你的博客是简体中文版的wordpress的话,就会是中文的,如果是英文版的,需要使用中文版的runcode,需要修改英文语言包的内容为中文的。

[回复]

猫小样 回复于2009年07月23日10:27

我的wordpress是中文的,可是runcode显示的是英文,我改了里面那个PHP的文件,现在变成方框了

[回复]

你可以将runcode-by-soncy目录下的runcode-zh_CN.mo改名为runcode.mo

Windmill 是who?

[回复]

貌似是来自马来西亚的

[回复]

呵呵。不错我那上面就有spam的老外留言过^!^|||

[回复]

Please ignore my Comments. I found the solution to the problem with your plugin.

Thank You.

[回复]

this bug is fixed,you can download the newest version form here to cover the old files.thank you for reporting this bug.

[回复]

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

[回复]

Works great, thank you

[回复]

you are welcome~ :oops: Thank you for using this plug-in

[回复]

呼呼,苏洋的签名在这一刻 …灵魂附体…厚道的话回访~

[回复]

  1. 3条引用

  2. 2010年06月22日: wordpress运行代码插件 runcode – 七分地
  3. 2010年01月8日: 菜鸟笔记 » Blog Archive » teatarea与W3C验证--学习CSS和JavaScript
  4. 2009年08月26日: 枫芸志 » WordPress运行代码插件RunCode by Soncy
发表评论



客官留步,你可能对以下文章也感兴趣