crazy-max / dokuwiki-plugin-syntaxhighlighter4

SyntaxHighlighter4 plugin for DokuWiki
http://bit.ly/2vfZ9jG
Other
53 stars 5 forks source link

Uncaught Error: Brush wasn't configured for html-script option: bash #12

Closed gpant closed 6 years ago

gpant commented 7 years ago

I have tried a couple of brushes I wanted to use like bash and cpp and I always get the following error: Uncaught Error: Brush wasn't configured for html-script option: bash at new HtmlScript (syntaxhighlighter.js:3414) at Object.highlight (syntaxhighlighter.js:217) at syntaxhighlighter.js:101 at HTMLDocument.listener (syntaxhighlighter.js:5296)

Other brushes like php for example render fine without an issue.

crazy-max commented 7 years ago

I will investigate on your issue

crazy-max commented 7 years ago

Do you experience this issue with the latest release?

gpant commented 7 years ago

The last commit I see is from 2017/07/26 and I have already applied it with no changes in the issue unfortunately.

crazy-max commented 7 years ago

@gpant Can you paste your page with code here plz ?

gpant commented 7 years ago

On purpose I set one of them to bash so that you can see the error: https://eservices-greece.com/wiki/software/nginx

crazy-max commented 7 years ago

I don't have any issue with your page on my local dokuwiki :

====== SyntaxHighlighter4 ======

===== sxh bash =====
<sxh bash>
cd ~
mkdir buildnginx
cd ~/buildnginx
useradd nginx
</sxh>

image

Maybe it's your template or another plugin. Can you give me a list of your plugins and theme ?

gpant commented 7 years ago

I disabled every plugin and reverted to the default theme but the issue remains unfortunately. I will try to debug it a bit more and notify you.

Thanks for your help.

crazy-max commented 6 years ago

@gpant Any news about this ?

gpant commented 6 years ago

I am really sorry for the late reply, unfortunately I haven't had the time to debut this yet due to work, you can close the issue and I will open when I got some more information on it. Thanks for your help.

crazy-max commented 6 years ago

Ok thanks

ghost commented 6 years ago

JFYI, It seems that there is an issue with the plugin»syntaxhighlighter4»htmlScript option. Disabling it fix the brush render.

Regards!!


gpant commented 6 years ago

You are absolutely correct, I just disabled the option and the bash styling worked perfectly.