Skip to content

Commit 69402f7

Browse files
authored
Update README.md
1 parent da6f3f5 commit 69402f7

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
`highlight.js` syntax definition for Solidity.
1+
`highlight.js` syntax definition for Turtle.
22

33
For more about highlight.js, see https://highlightjs.org/
44

5-
For more about Solidity, see http://solidity.readthedocs.io/
5+
For more about Turtle, see https://www.w3.org/TR/turtle/
66

77
### Usage
88

@@ -12,9 +12,9 @@ If you're not using a build system and just want to embed this in your webpage:
1212

1313
```html
1414
<script type="text/javascript" src="/path/to/highlight.pack.js"></script>
15-
<script type="text/javascript" src="/path/to/highlightjs-solidity/solidity.js"></script>
15+
<script type="text/javascript" src="/path/to/highlightjs-turtle/turtle.js"></script>
1616
<script type="text/javascript">
17-
hljs.registerLanguage('solidity', window.hljsDefineSolidity);
17+
hljs.registerLanguage('turtle', window.hljsDefineTurtle);
1818
hljs.initHighlightingOnLoad();
1919
</script>
2020
```
@@ -23,18 +23,16 @@ If you're using webpack / rollup / browserify / node:
2323

2424
```javascript
2525
var hljs = require('highlightjs');
26-
var hljsDefineSolidity = require('highlightjs-solidity');
26+
var hljsDefineTurtle = require('highlightjs-turtle');
2727

28-
hljsDefineSolidity(hljs);
28+
hljsDefineTurtle(hljs);
2929
hljs.initHighlightingOnLoad();
3030
```
3131

3232
### Advanced
3333

34-
This is a pretty simple package, the only thing you might want to do differently is name the language something other than `solidity`. If you want to do this, simply `import { definer } from 'highlightjs-solidity';` and use it like: `hljs.registerLanguage('othername', definer);`.
34+
This is a pretty simple package, the only thing you might want to do differently is name the language something other than `turtle`. If you want to do this, simply `import { definer } from 'highlightjs-turtle';` and use it like: `hljs.registerLanguage('othername', definer);`.
3535

3636
### About the author
3737

38-
Find me at http://pospi.spadgos.com
39-
40-
Tip me some ether? (; `0x52c04Bf91ebB58221A4ac65967e4CDa15a871eba`
38+
The code for Turtle was taken from the non-merged pull request by Mark Ellis, at https://github.com/ellismarkf/highlight.js/blob/c65ea836b3785a5b2ee2078461edaf38c005247d/src/languages/sparql.js

0 commit comments

Comments
 (0)