简体   繁体   English

用于代码示例功能的脚本

[英]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 认为您正在要求提供代码语法高亮工具-如果是这样,请签出

  1. http://alexgorbatchev.com/SyntaxHighlighter/ http://alexgorbatchev.com/SyntaxHighlighter/
  2. http://colorcode.codeplex.com/ http://colorcode.codeplex.com/

You did not specify a language though. 您没有指定语言。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM