语法高亮显示CodeProject [英] Syntax Highlighting on CodeProject

查看:74
本文介绍了语法高亮显示CodeProject的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找像代码项目一样实现代码语法高亮显示。在Code Project开源上的PRE标签内突出显示的CSS / JavaScript是什么?如果是的话,有没有我可以下载的地方?我想在这里为我们的内部文档站点实现类似的功能。我已经看到了Google提供的选项,可以搜索语法高亮,代码突出显示等。所以请不要给我这些相同的链接。我正在寻找比迄今为止我发现的更好的东西。它们看起来并不那么简单。我想要一些我的同事可以使用的东西而不用太多考虑它。 Code Project的工作方式很棒 - 只需在代码周围包装PRE标签并告诉它语言。我想要一些非常相似的东西(或者如果可能的话,也是一样的。)

I''m looking to implement code syntax highlighting like is on Code Project. Is the CSS/JavaScript that does the highlighting inside the PRE tags on Code Project open source? If so, is there a place that I can download it? I want to implement a similar feature for our internal documentation site here at work. I''ve seen the options that are available via Google searches for syntax highlighting, code highlighting, etc. so please don''t just give me those same links. I''m looking for something better than what I''ve found so far. They don''t seem that simple to use. I want something that my co-workers can use without thinking too much about it. The way Code Project works is great - just wrap PRE tags around your code and tell it the language. I want something very similar (or the same, if possible).

推荐答案

谷歌是你的朋友,或者没有简单的文章搜索应该做的伎俩: a href =http://www.codeproject.com/search.aspx?doctypeid=1&q=syntax+highlight> http://www.codeproject.com/search.aspx?doctypeid=1&q=syntax +突出显示 [ ^ ]会给你很多解决方案!
Google is your friend here, or failing that a simple Article search should do the trick: http://www.codeproject.com/search.aspx?doctypeid=1&q=syntax+highlight[^] will give you quite a few solutions to look at!


嗯..要求很清楚;很好地写下你想要的所有必要细节以及你不想要的东西......



如果我的话听起来很粗鲁,那我唯一的问题是真诚的道歉是你把它发布到错误的地方...因为你不想通过谷歌提供任何解决方案,我不认为有人会根据你的具体要求为你编写代码。



如果您仍想获得解决方案,可以发布此处 [ ^ ]由于codeproject不是人们分发代码或发布您的要求并获得代码或免费工作..



请阅读代码项目徽标 - CODE PROJECT - 对于那些代码...你希望他们应该改为 - 代码项目 - 对于那些不做代码的人
Well ..The requirement is pretty clear ; nicely written with all the necessary details of what you want and what you don''t...

My sincerely apologies if my words sound rude, but the only problem is that you posted it to wrong place...Since you do not want any solutions available via Google and I don''t think somebody here is going to write the code for you as per your specific requirements.

If you still want to get a solution you can post it here[^] Since codeproject is not the site where people distribute code OR post your requirement and get the code OR work for free..

Do read the code project logo - "CODE PROJECT - For those who code"... Do you wish they should change it to -"CODE PROJECT - For those who DON''T code"


这篇关于语法高亮显示CodeProject的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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