Created on 4 October 2023, over 1 year ago
Updated 26 December 2023, about 1 year ago

Problem/Motivation

I have configured the module with the latest Drupal 10 version, and I have done different test. I'm not sure if I'm missing some configuration or if it is already a bug. Or maybe I'm not understanding how it should work.

1. First I have enabled automatic mode, and whatever the code block I select, it is recognized as Ruby.

For example, the following content:
<pre><code class="language-plaintext">curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg</ code></pre>

Is rendered as:
<pre><code class="language-plaintext hljs ruby">curl -fsSL <span class="hljs-symbol">https:</span>/<span class="hljs-regexp">/download.docker.com/linux</span><span class="hljs-regexp">/debian/gpg</span> <span class="hljs-params">| sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg</span></ code></pre>

2. I have enabled manual mode, but the code is not highlighted.

For example, the following content:
<pre><code class="language-cs">curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg</ code></pre>

Is rendered as:
<code class="language-cs hljs cs">curl -fsSL https:<span class="hljs-comment">//download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg</span></ code>

And no highlight is done.

3. I have also tried to add additional block code through the content authoring like "bash", which is supported by the highlight.php library, but with no success.

NOTE: I needed to use </ code> instead </code> tag to show the examples

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

User interface

Created by

πŸ‡ͺπŸ‡ΈSpain dtamajon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024