修正了谷歌代码,美化W / C# [英] Fix for google-code-prettify w/ c#

查看:180
本文介绍了修正了谷歌代码,美化W / C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美化标记化C#的时候,使他们给人的类型和方法同等级着色相同。这是因为,方法是在C#中,而不是骆驼情况下帕斯卡情况下象Java。这会影响我的博客和所有计算器的C#代码因为他们使用美化了。

Prettify gives types and methods the same class when tokenizing c# so they are colored the same. This is because methods are pascal case in c# instead of camel case like in java. This affects my blog and all stackoverflow c# code since they use prettify too.

有没有人有这样的定位?

如果没有,你至少可以的星/投票正式臭虫报告的Mar / 2009所以笔者再来看看

If not, you can at least star/vote the official bug that was reported in Mar/2009 so the authors take another look.

推荐答案

其实,我写我自己的语法高亮库来解决这样的问题。这是非常类似的美化,但你必须明确地指定语言。

I actually wrote my own syntax highlighting library to solve problems like this. It's pretty similar to prettify but you have to specify the language explicitly.

  • Website
  • Demo

这篇关于修正了谷歌代码,美化W / C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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