nfdi4objects / n4o-graph

NFDI4Objects Property Graph
https://nfdi4objects.github.io/n4o-graph/
Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

Create Syntaxhighlighting for SparQL & Cypher #20

Closed SmtB4 closed 6 months ago

SmtB4 commented 6 months ago

Highlight.js in die Doc html Datein einfügen? https://highlightjs.org/ https://github.com/highlightjs/highlightjs-cypher https://github.com/redmer/highlightjs-sparql

SmtB4 commented 6 months ago

Benutzte include-before-body um <scripts> hinzuzufügen. Eventuel js selbst bereitstellen?

---
title: Blah
author: Howard
include-before-body:
  text: |
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
    <script src="https://unpkg.com/highlightjs-cypher/dist/cypher.min.js"></script>
    <script src="https://raw.githubusercontent.com/redmer/highlightjs-sparql/master/src/languages/sparql.js"></script>
    <script type="text/javascript">
      hljs.highlightAll();
    </script>
---