own language

47 views
Skip to first unread message

Philipp Kraus

unread,
Jul 6, 2016, 4:34:26 AM7/6/16
to highlight.js
Hello,

I'm new with hightlight.js and I try to create my own language definition. The language definition based on the existing Prolog script.

I'm tested it with Prolog, if I put this script https://github.com/isagalaev/highlight.js/blob/master/src/languages/prolog.js to my agentspeak.js file
and add in the beginning the hljs.registerLanguage( "agentspeak", <I paste here the content of the prolog.js> ); it does not work, but if I use the
minimized version of Prolog.js (https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/languages/prolog.min.js) and change the string "prolog" to "agentspeak"
it works well.

What is my mistake, because I would like to test it on my website, which is generated with Hugo (https://gohugo.io/), so I need the combination of the tools.

Thanks

Phil
Reply all
Reply to author
Forward
0 new messages