我怎样才能在一个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.