jsfiddle如何标记代码?有这个图书馆吗? [英] How does jsfiddle mark up code? Is there a library for this?

查看:54
本文介绍了jsfiddle如何标记代码?有这个图书馆吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您曾经使用过www.jsfiddle.net,您可能会注意到它会使用正确的颜色标记代码,以及其他各种帮助程序,例如将标签转换为四个空格或shift-tab。使用Firebug,我看到它正在使用iFrame执行此操作。有没有一个开源库来做到这一点?我想让人们在网页上编写Python,但是让它像jsfiddle一样。

If you've ever used www.jsfiddle.net, you might notice that it marks up code with proper colorings, and various other helpers like translating tabs to four spaces or shift-tab. With Firebug I see that it's doing this with an iFrame. Is there an open source library to do this? I want to let people write Python on a web page, but make it pretty like jsfiddle.

推荐答案

签出 CodeMirror

这篇关于jsfiddle如何标记代码?有这个图书馆吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆