最佳工具 - 显示源代码 - Web

时间:2021-11-29 00:09:17

What is the best tool for showing source codes on the Web ?

在Web上显示源代码的最佳工具是什么?

with Syntax highlighting , in color - Line-Numbers Asp.Net

语法突出显示,颜色 - 行号Asp.Net

3 个解决方案

#1


If you want to display source code on a web page, a search for "syntax highlighter" will give you a few suggestions.

如果要在网页上显示源代码,搜索“语法高亮显示”将为您提供一些建议。

Scott Hanselman has an article on what he uses on his blog. Its a javascript one, and it (almost) only requires you to include the correct js files... (Easy read, and seems like a good solution.)

斯科特汉塞尔曼有一篇关于他在博客上使用的文章。它是一个javascript,它(几乎)只需要你包含正确的js文件...(易读,似乎是一个很好的解决方案。)

#2


Is GeSHi what you're looking for?

GeSHi你在寻找什么?

From the main page:

从主页面:

GeSHi started as an idea to create a generic syntax highlighter for the phpBB forum system, but has been generalised to this project. GeSHi aims to be a simple but powerful highlighting class, with the following goals:

GeSHi最初是为phpBB论坛系统创建通用语法高亮显示器的想法,但已经推广到这个项目。 GeSHi旨在成为一个简单而强大的突出课程,具有以下目标:

  • Support for a wide range of popular languages
  • 支持各种流行语言

  • Easy to add a new language for highlighting
  • 轻松添加新语言以突出显示

  • Highly customisable output formats
  • 高度可定制的输出格式

GeSHi supports PHP5 and Windows, and has even been used to highlight code on ASP pages.

GeSHi支持PHP5和Windows,甚至用于突出显示ASP页面上的代码。

#3


For ASP.NET, Visual Studio seems quite popular.

对于ASP.NET,Visual Studio似乎很受欢迎。

If you just want to see the source of the generated HTML, rather than create and edit the server side code, Firefox with Firebug works nicely.

如果您只想查看生成的HTML的来源,而不是创建和编辑服务器端代码,Firefox和Firebug可以很好地工作。

#1


If you want to display source code on a web page, a search for "syntax highlighter" will give you a few suggestions.

如果要在网页上显示源代码,搜索“语法高亮显示”将为您提供一些建议。

Scott Hanselman has an article on what he uses on his blog. Its a javascript one, and it (almost) only requires you to include the correct js files... (Easy read, and seems like a good solution.)

斯科特汉塞尔曼有一篇关于他在博客上使用的文章。它是一个javascript,它(几乎)只需要你包含正确的js文件...(易读,似乎是一个很好的解决方案。)

#2


Is GeSHi what you're looking for?

GeSHi你在寻找什么?

From the main page:

从主页面:

GeSHi started as an idea to create a generic syntax highlighter for the phpBB forum system, but has been generalised to this project. GeSHi aims to be a simple but powerful highlighting class, with the following goals:

GeSHi最初是为phpBB论坛系统创建通用语法高亮显示器的想法,但已经推广到这个项目。 GeSHi旨在成为一个简单而强大的突出课程,具有以下目标:

  • Support for a wide range of popular languages
  • 支持各种流行语言

  • Easy to add a new language for highlighting
  • 轻松添加新语言以突出显示

  • Highly customisable output formats
  • 高度可定制的输出格式

GeSHi supports PHP5 and Windows, and has even been used to highlight code on ASP pages.

GeSHi支持PHP5和Windows,甚至用于突出显示ASP页面上的代码。

#3


For ASP.NET, Visual Studio seems quite popular.

对于ASP.NET,Visual Studio似乎很受欢迎。

If you just want to see the source of the generated HTML, rather than create and edit the server side code, Firefox with Firebug works nicely.

如果您只想查看生成的HTML的来源,而不是创建和编辑服务器端代码,Firefox和Firebug可以很好地工作。

相关文章