Skip to content

highlightjs/highlightjs-shexc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Shape Expressions Compact Syntax (ShExC) language syntax highlighting plugin for highlight.js

Demo

ShEx is a schema language for RDF. It defines and validates the structural requires for RDF graphs.

For more about ShEx here:

Getting started

You must add the highlight.js file from highlight.js in your web page or node app, load up this module and apply it to hljs.

If you are not using a build system and just want to embed this in your webpage:

<script type="text/javascript" src="js/highlight.min.js"></script>
<script type="text/javascript" src="js/shexc.js"></script>
<script type="text/javascript">
    hljs.registerLanguage('shexc', window.hljsDefineShExC);
    hljs.highlightAll();
</script>

If you are using webpack or rollup or browserify or node:

var hljs = require('highlightjs');
var hljsDefineShExC = require('highlightjs-shexc');

hljsDefineShExC(hljs);
hljs.highlightAll();

Licence

© 2019 License: MIT Eric Prud'hommeaux

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published