Code Monkey home page Code Monkey logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 16, 2024
"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 [email protected] on 31 Mar 2008 at 2:52

from snippely.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 16, 2024
The problem is not just PHP.  To fix it change the RegExp in highlighter.js 
line 136 to:

doubleQuotedString: (/"(?:\.|(\\\\\")|[^\""\n])*"/g),

Original comment by [email protected] on 10 Apr 2008 at 10:37

from snippely.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 16, 2024
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 [email protected] on 10 Apr 2008 at 10:45

from snippely.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 16, 2024
fixed in r132

Original comment by [email protected] on 21 May 2008 at 11:01

  • Changed state: Fixed

from snippely.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.