linkedpipes / etl

LinkedPipes ETL is an RDF based, lightweight ETL tool
https://etl.linkedpipes.com
Other
143 stars 30 forks source link

Debug browser: Add syntax highlighter #700

Open jakubklimek opened 5 years ago

jakubklimek commented 5 years ago

We need to add a syntax highlighter for the debug data, at least for JSON and RDF Turtle (based on file extensions). Here are some options:

If Turtle is missing, we can add it to the chosen one

skodapetr commented 5 years ago

@jakubklimek Well, it is just that most of them are focused on highlighting code not file content. So can you add some details on which relevant formats that we want to support those tools support?

jakubklimek commented 5 years ago

The listed ones all support JSON. In addition to JSON, we need the RDF serializations, XML and HTML would be nice (highlight.js supports these). So I see no problem there.

Of course, if we find something usable for us which already supports RDF, the better, but I think it can be added to those listed above, if needed. For instance, I already written a highlighter for Rouge, which is a Ruby-based highlighter used in github pages.

skodapetr commented 5 years ago

Ok, could you please provide a plugin for PrismJs or https://highlightjs.org/ we should be able to get both running - but we may need to test both for performance.

jakubklimek commented 5 years ago

I added Turtle/TriG to Prism (https://github.com/jakubklimek/prism).