[MarkLogic Dev General] XQuery Syntax Highlighting Takedowns (bounty hunting)

Eric Bloch Eric.Bloch at marklogic.com
Fri Nov 5 18:44:11 PDT 2010


Hey Folks,

For those following the bounty hunting contest we ran in September, please kindly see http://developer.marklogic.com/blog/september-2010-bounties-claimed for the results.    I'll paste in the HTML results below (I know some folks mail clients won't do it justice so please see the link above).

Thanks so much to Steve, Mike, Patrick, and Rob for their contributions to the community!

-Eric



Name    Takedown        Bounty
Github<http://github.com/>

Github<http://github.com/> is lacking support for XQuery.  They use Pygments<http://pygments.org/> (a python framework for syntax highlighting) and need a Pygments Lexer<http://pygments.org/docs/lexers/>. See this brief note<http://support.github.com/discussions/graphs/133-xquery-syntax-highlighting>.

Though this creature was quite wily, Steve Spigarelli<http://spig.net/> did eventually pin it  down. Steve's lexer<https://github.com/spig/pygments-xquery-lexer> is working reasonably well and he's already submitted up a pull request to the Pygments main fork.


Apple iPad
64GB w/ WiFi[http://images.apple.com/ipad/home/images/buystrip_ipad_20100225.png]


Codemirror<http://codemirror.net/>

Codemirror<http://codemirror.net/> is a javascript library that provides in-browser syntax highlighting.  It is missing support for XQuery.
<http://mike.brevoort.com/>

Mike Brevoort<http://mike.brevoort.com/> not only implemented a great library<http://github.com/mbrevoort/CodeMirror>, which you can demo here<http://mbrevoort.github.com/CodeMirror>, but he also got his patch accepted back<http://github.com/marijnh/CodeMirror/commit/13334ad29643d9d41595dfc5201c70dc105be42a> into the main fork of CodeMirror<http://github.com/marijnh/CodeMirror>.


Apple iPad
64GB w/ WiFi[http://images.apple.com/ipad/home/images/buystrip_ipad_20100225.png]


Google Code<http://code.google.com/>

Google Code<http://code.google.com/> uses google-code-prettify<http://code.google.com/p/google-code-prettify> and it is missing support for XQuery.  A first step here would be to provide a patch that supports these.  Bonus points would be to get the project to take in the patch.

Patrick Wied<http://www.patrick-wied.at/> provided an entry here that does the job, given the limitations (lack of context-dependent lexing) that is inherent in this tool.


Apple iPad
64GB w/ WiFi[http://images.apple.com/ipad/home/images/buystrip_ipad_20100225.png]


SyntaxHighlighter<http://alexgorbatchev.com/SyntaxHighlighter>

Popular open-source Javascript syntax highlighter.

Rob Whitby<http://www.xqueryhacker.com> entered his venerable XQuery brush<http://www.xqueryhacker.com/2009/11/syntaxhighlighter-xquery-brush/> and has claimed this bounty.  It's working decently as it always has.  Alex Gorbachev<http://alexgorbatchev.com> has "put it in the queue" for integration.
        1 year subscription to[http://my.safaribooksonline.com/static/201009-1036-my/images/6.0/logo_sbo.gif]






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20101105/2bbf8c59/attachment.html 


More information about the General mailing list