https://github.com/highlightjs/highlightjs-shexc
https://github.com/highlightjs/highlightjs-shexc
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/highlightjs/highlightjs-shexc
- Owner: highlightjs
- License: mit
- Created: 2019-03-21T13:16:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-25T21:11:00.000Z (over 3 years ago)
- Last Synced: 2024-10-29T23:44:01.811Z (8 months ago)
- Language: JavaScript
- Size: 67.4 KB
- Stars: 4
- Watchers: 6
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

## Shape Expressions Compact Syntax (ShExC) language syntax highlighting plugin for [highlight.js](https://highlightjs.org/)
[Demo](https://highlightjs.github.io/highlightjs-shexc/)
ShEx is a schema language for [RDF](https://en.wikipedia.org/wiki/Resource_Description_Framework). It defines and validates the structural requires for RDF graphs.
For more about ShEx here:
* [Home Page](http://shex.io/)
* [Primer](http://shex.io/primer/)
* [Specification](http://shex.io/spec/)
* [Shape Maps](http://shex.io/shape-map/)
* [gitter](https://gitter.im/shapeExpressions/Lobby)## Getting started
You must add the `highlight.js` file from [highlight.js](https://github.com/highlightjs/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:
```javascript
hljs.registerLanguage('shexc', window.hljsDefineShExC);
hljs.highlightAll();```
If you are using `webpack` or `rollup` or `browserify` or `node`:
```javascript
var hljs = require('highlightjs');
var hljsDefineShExC = require('highlightjs-shexc');hljsDefineShExC(hljs);
hljs.highlightAll();
```## Licence
© 2019 [](https://opensource.org/licenses/MIT) Eric Prud'hommeaux