Closed GoogleCodeExporter closed 9 years ago
"I doubt you wrote your own."
actually, Valerio did write it himself ;), though it is based on
dp.SyntaxHighlighter.
(http://googlecode.com/p/syntaxhighlighter)
the bug is in the regexp we are using for double quoted strings... thanks for
the report, we're looking into a fix.
Original comment by tomocch...@gmail.com
on 31 Mar 2008 at 2:52
The problem is not just PHP. To fix it change the RegExp in highlighter.js
line 136 to:
doubleQuotedString: (/"(?:\.|(\\\\\")|[^\""\n])*"/g),
Original comment by mdes...@gmail.com
on 10 Apr 2008 at 10:37
By the way, is anyone maintaining snippely? It has the potential to be an
awesome
tool for devs of all kinds.
If someone is, here is the start of C# highlighter:
Brushes.CSharp = {
'comment': [Highlighter.RegExps.singleLineComment,
Highlighter.RegExps.multiLineComment],
'string': [Highlighter.RegExps.singleQuotedString,
Highlighter.RegExps.doubleQuotedString],
'integer': Highlighter.RegExps.integer,
'preprocessor': Highlighter.RegExps.preprocessor,
'special': (/\$\w+/g),
'keyword': 'abstract as base bool break byte case catch char checked class const ' +
'continue decimal default delegate do double else enum event explicit ' +
'extern false finally fixed float for foreach get goto if implicit in int ' +
'interface internal is lock long namespace new null object operator out ' +
'override params private protected public readonly ref return sbyte sealed set ' +
'short sizeof stackalloc static string struct switch this throw true try ' +
'typeof uint ulong unchecked unsafe ushort using virtual void while'
};
Original comment by mdes...@gmail.com
on 10 Apr 2008 at 10:45
fixed in r132
Original comment by tomocch...@gmail.com
on 21 May 2008 at 11:01
Original issue reported on code.google.com by
TJLeahy...@gmail.com
on 31 Mar 2008 at 2:40Attachments: