Comments (3)
Thanks much. I will try to integrate these changes.
Original comment by [email protected]
on 27 Mar 2007 at 6:54
from google-code-prettify.
Patch is below.
=====================================================
--- prettify.js-r20 2007-03-29 21:10:55.000000000 -0700
+++ prettify.js 2007-03-29 21:09:25.000000000 -0700
@@ -72,6 +72,13 @@
"interface long native new null package private protected public return " +
"short static super switch synchronized this throw throws transient " +
"true try typeof var void volatile while with NaN Infinity");
+ var CSHARP_KEYWORDS = (
+ "abstract as base bool break by byte case catch char checked class const
continue " +
+ "decimal default delegate do double descending explicit event extern else
enum
false finally " +
+ "fixed float for foreach from goto group if implicit in int " +
+ "interface internal into is lock long new null namespace object operator
out
override orderby params private protected public readonly ref return " +
+ "sbyte sealed short sizeof stackalloc static string switch struct select
this
throw " +
+ "true try typeof uint ulong unchecked unsafe ushort using var virtual void
volatile while where yield");
var PERL_KEYWORDS = (
"foreach require sub unless until use elsif BEGIN END");
var SH_KEYWORDS = (
@@ -80,8 +87,8 @@
"if then elsif else end begin do rescue ensure while for class module " +
"def yield raise until unless and or not when case super undef break " +
"next redo retry in return alias defined");
- var KEYWORDS = [CPP_KEYWORDS, JAVA_KEYWORDS, JSCRIPT_KEYWORDS, PERL_KEYWORDS,
- PYTHON_KEYWORDS, RUBY_KEYWORDS, SH_KEYWORDS];
+ var KEYWORDS = [CPP_KEYWORDS, JAVA_KEYWORDS, JSCRIPT_KEYWORDS,
CSHARP_KEYWORDS,
+ PERL_KEYWORDS, PYTHON_KEYWORDS,
RUBY_KEYWORDS, SH_KEYWORDS];
for (var k = 0; k < KEYWORDS.length; k++) {
var kw = KEYWORDS[k].split(' ');
for (var i = 0; i < kw.length; i++) {
Original comment by [email protected]
on 30 Mar 2007 at 4:15
from google-code-prettify.
patched in
http://google-code-prettify.googlecode.com/svn/trunk/CHANGES.html.
Original comment by [email protected]
on 2 Apr 2007 at 6:47
- Changed state: Fixed
from google-code-prettify.
Related Issues (20)
- Perl syntax highlighting does not recognize POD and highlights quotes in comments
- Bash "$#" treated as comment HOT 1
- Integration for Presentation
- Patch for /trunk/src/lang-css.js
- "><img src=x onerror=prompt(1);> HOT 2
- Feature request: AspectJ syntax highlighting.
- gzip disabled
- Patch for /trunk/js-modules/run_prettify.js
- Patch for /trunk/src/lang-vb.js
- Line numbers carry over in clipboard using IE 11.
- Patch for /trunk/src/awkirin.css
- Problem with backslash in VB
- FLOW_CONTROL_KEYWORDS should not contain `do`
- Syntax Highlighting for Rebol (and Red) programming languages
- Patch for /trunk/styles/sons-of-obsidian.css
- Syntax highlight for Robot Framework syntax
- Patch for /trunk/src/prettify.css HOT 1
- Inconsist TCL Syntax higlighter
- Patch for /trunk/src/lang-sql.js
- Patch for /trunk/styles/sons-of-obsidian.css
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-code-prettify.