[英]Script for the functionality of Code Sample
I just want to have the functionality of Code Sample(this is a button above text format box in SOF when we ask a question) which is also there in StackOverFlow. 我只想拥有代码示例的功能(当我们提出问题时,这是SOF中文本格式框上方的按钮),该功能也位于StackOverFlow中。 How to get the color of keywords which are shown in IDE.
如何获取IDE中显示的关键字的颜色。
<pre><code>
works good to show the code but how to display the exact color which IDE is displaying, that is what I don't know. <pre><code>
可以很好地显示代码,但是如何显示IDE所显示的确切颜色,这是我所不知道的。 Can we have same functionality in Windows form to display the code. 我们可以在Windows窗体中使用相同的功能来显示代码吗?
You might want something like this: http://code.google.com/p/syntaxhighlighter/ 您可能想要这样的东西: http : //code.google.com/p/syntaxhighlighter/
If you're using jQuery, then: http://code.google.com/p/jquery-chili-js/ 如果您使用的是jQuery,则: http : //code.google.com/p/jquery-chili-js/
I think you are asking for a code syntax highlighting tool in - if so check out 我认为您正在要求提供代码语法高亮工具-如果是这样,请签出
You did not specify a language though. 您没有指定语言。
StackOverflow根据这篇文章使用Google Prettify : https : //meta.stackexchange.com/questions/14664/how-does-so-syntax-highlight-citations-so-well
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.