Groups
Sign in
Groups
highlight.js
Conversations
About
Send feedback
Help
own language
47 views
Skip to first unread message
Philipp Kraus
unread,
Jul 6, 2016, 4:34:26 AM
7/6/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.
The script shows
https://lightjason.github.io/agentspeak.js
but it does not work, see example
https://lightjason.github.io/framework/agentspeak/
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