我怎样才能在一个div中显示实际的源代码 [英] how can i show actual source code in a div

查看:99
本文介绍了我怎样才能在一个div中显示实际的源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用div中的颜色编码显示我的源代码的一部分,以允许用户获取代码的引用。现在我怎么能显示实际的php jquery或任何其他语言的源代码与div中的颜色。

i want to show a part of my source code with color coding in a div for allowing users to get reference of code..now how can i show the actual php jquery or any other language source code with colors in a div.

推荐答案

使用 SyntaxHighlighter

这篇关于我怎样才能在一个div中显示实际的源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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