- Issue created by @dtamajon
- ivnish Kazakhstan
I can confirm this. Looks like library highlight.php bug, but I need some time to check it.
- πΊπΈUnited States samuel.mortenson
"First I have enabled automatic mode"
Could you upload your highlight_php configuration here? I'd like to see what your configured languages are. It only chooses from languages in config to avoid false positives, so if ruby has a high priority there and plaintext isn't in the list, that could be what's happening.
"I have enabled manual mode, but the code is not highlighted."
You code samples here look OK to me - I think "cs" is the code for "C#", which is why it's not highlighting as bash (sh).
- πͺπΈSpain dtamajon
Hi,
this is my highlighting configuration:
html javascript css scss less twig yaml sql php csharp bash perl ruby json nginxI tried to change the order, but I didn't appreciate any change in results.
"You code samples here look OK to me - I think "cs" is the code for "C#", which is why it's not highlighting as bash (sh)."
When I use "cs" I don't intend to highlight as sh but as C#, but no there is no highlighting at all.
- ivnish Kazakhstan
I managed to investigate a little
I installed highlight.php without drupal and highlight.js for additional checks.
Your bash code "curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg"
doesn't work everywhere
but another bash code works (I used some keywords from library language files)
- ivnish Kazakhstan
I can confirm. This code "curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg" is recognized as Ruby. This is not drupal module bug, this is highlight.php library bug.
- ivnish Kazakhstan
In manual mode this code doesn't highlight. See my comment #12
- ivnish Kazakhstan
highlight.js is correctly recognized this code as bash, but doesn't highlighted it
- Status changed to Postponed: needs info
about 1 year ago 5:24pm 8 December 2023 - Status changed to Closed: works as designed
about 1 year ago 7:51am 26 December 2023