Request For Help: cobra2html via Pygments
Posted: Fri Feb 29, 2008 1:12 am
Now that Cobra is going open source, I'll be putting out some "Request For Help" notices. I'm still on the hook for deeply rooted bugs and features in the compiler because I know the code base best. Those are going to keep me pretty busy. And while you're welcome to work on those too, I imagine some people might enjoy easier, auxiliary tasks that are also very important.
Here's one:
In the new release (0.7.4) under the Supplements directory, you will find a cobra2html.py file which sort of works. Except it's just using the Python syntax highlighter from Pygments which is a nice project that supports around 25 different languages. The goal is to provide a Cobra highlighter by writing one from scratch or copying the Python one and modifying it. Pygments is open source so we can do so.
Your contribution would be distributed with Cobra under the MIT open source license, or if that conflicts with Pygments for some reason, we could mark that file under their choice of the BSD.
Btw this would hopefully become the means by which we'd get highlighting on the discussion board, upcoming wiki and the online code samples (How To and Samples).
And yes we could investigate doing a Cobra implementation of Pygments if someone gets the itch. It might make a nice comparison to see the contracts, builtin unit tests, extra speed and so forth. And also to see what things about Python are still more convenient than Cobra.
But leveraging Pygments is a great place to start.
Here's one:
In the new release (0.7.4) under the Supplements directory, you will find a cobra2html.py file which sort of works. Except it's just using the Python syntax highlighter from Pygments which is a nice project that supports around 25 different languages. The goal is to provide a Cobra highlighter by writing one from scratch or copying the Python one and modifying it. Pygments is open source so we can do so.
Your contribution would be distributed with Cobra under the MIT open source license, or if that conflicts with Pygments for some reason, we could mark that file under their choice of the BSD.
Btw this would hopefully become the means by which we'd get highlighting on the discussion board, upcoming wiki and the online code samples (How To and Samples).
And yes we could investigate doing a Cobra implementation of Pygments if someone gets the itch. It might make a nice comparison to see the contracts, builtin unit tests, extra speed and so forth. And also to see what things about Python are still more convenient than Cobra.
But leveraging Pygments is a great place to start.