franck-paul / hljs

Dotclear 2 plugin
GNU General Public License v2.0
0 stars 0 forks source link

The JavaScript file for highlight.js isn't loaded #5

Closed julienw closed 7 months ago

julienw commented 7 months ago

Hi, it's me again :-)

It looks like the highlight.js file isn't loaded in my installation. As a result there's no syntax highlighting. I also see no error in the Web Console. Is there anything I'm missing? Something to configure elsewhere? In case it's useful, I'm using the ductile theme.

Thanks Franck

franck-paul commented 7 months ago

Any URL to see it?

julienw commented 7 months ago

You can see in https://everlong.org/blog/index.php/post/2015/07/Mes-probl%C3%A8mes-de-suspend The part that should be syntax highlighted is the block right after Puis j'ai édité /usr/local/bin/disable-xhc-wakeup avec ce contenu:.

Thanks again

julienw commented 7 months ago

image ^^^ again a user problem...

but I'm surprised that the macros are registered when it's unchecked :-) (macros from https://github.com/franck-paul/hljs/blob/main/src/CoreBehaviors.php#L23-L39)

franck-paul commented 7 months ago

I will verify this issue (registered macro).

My last test: screenshot_2024-01-29_11-32-48_AM

With the following source (wiki syntax):

HLJS native:
///hljs bash
#!/bin/sh

if grep -q XHC.*enabled /proc/acpi/wakeup ; then
  echo XHC > /proc/acpi/wakeup
fi
///

YASH compatiblity:
///yash bash
#!/bin/sh

if grep -q XHC.*enabled /proc/acpi/wakeup ; then
  echo XHC > /proc/acpi/wakeup
fi
///

SyntaxeHL compatibility:
///[bash]
#!/bin/sh

if grep -q XHC.*enabled /proc/acpi/wakeup ; then
  echo XHC > /proc/acpi/wakeup
fi
///

Code compatibility:
///code bash
#!/bin/sh

if grep -q XHC.*enabled /proc/acpi/wakeup ; then
  echo XHC > /proc/acpi/wakeup
fi
///