n3pygments icon indicating copy to clipboard operation
n3pygments copied to clipboard

Contribute this lexer to Pygments

Open jodischneider opened this issue 11 years ago • 8 comments

Contribute this lexer to Pygments. According to http://pygments.org/contribute/ it looks like a pull request on bitbucket will do. Appropriate place appears to be here: https://bitbucket.org/birkenfeld/pygments-main/src/7304e4759ae65343d89a51359ca538912519cc31/pygments/lexers?at=default

jodischneider avatar Aug 30 '13 21:08 jodischneider

I will do so when I have time to do it. In order to make a pull-request, an example N3 file that makes use of all N3 features should be added. Unfortunately, I have a lot of work at the moment. (Of course you are free to contribute such an N3 file.)

uholzer avatar Aug 31 '13 12:08 uholzer

We could also consider submitting a pull request to Linguist (https://github.com/github/linguist), so that N3/Turtle is recognized on GitHub.

gniezen avatar Jan 28 '14 12:01 gniezen

For reference, there is an issue on this at pygments-main too: https://bitbucket.org/birkenfeld/pygments-main/issue/215/new-lexer-for-n3-turtle

(btw. I just created a pull request on Linguist using a TextMate-compatible grammar: https://github.com/github/linguist/pull/1841)

danmichaelo avatar Dec 06 '14 22:12 danmichaelo

It looks like @danmichaelo 's work is now live on GitHub! Now any Turtle/SPARQL code posted has nice syntax highlighting! It's a pity the TextMate grammar can't be somehow converted to Pygments.

gniezen avatar Feb 03 '15 16:02 gniezen

Thanks @danmichaelo !

westurner avatar Jul 15 '15 20:07 westurner

Pygments moved from BitBucket to GitHub, so the auto-converted issue is now there too.

hoijui avatar Feb 16 '24 10:02 hoijui

What about also RDFstar and SPARQLstar syntax highlighting?

On Fri, Feb 16, 2024, 5:27 AM hoijui @.***> wrote:

Pygments moved from BitBucket to GitHub, so the auto-converted issue https://github.com/pygments/pygments/issues/35 is now there too.

— Reply to this email directly, view it on GitHub https://github.com/gniezen/n3pygments/issues/4#issuecomment-1948121409, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAMNS2RMS2E3I3EVRPKSSLYT4YBLAVCNFSM4AHT3LO2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJUHAYTEMJUGA4Q . You are receiving this because you commented.Message ID: @.***>

westurner avatar Feb 16 '24 13:02 westurner

@westurner I would recommend to make two new issues for that.

hoijui avatar Feb 16 '24 17:02 hoijui