Hugo

Pygments Short Classes

Hello, i’m using pygmentsUseClasses but the classes i’m getting are short like k and i want them to be keyword

What i want;

<span class="keyword">const</span>

What i have ;

<span class="k">const</span>

Help please

How do you mean by keyword?

What i want;

<span class="keyword">const</span>

What i have ;

<span class="k">const</span>

Correct me if I’m wrong. You want to use the keyword class for styling purposes?

I’m already using pygmentsUseClasses and it makes the classes when i use code blocks in markdown, but it uses the short version. https://github.com/gohugoio/hugo/pull/5350 how can i fix this?

Why exactly do you have an issue with short class names? If they can style correctly. What are the use cases when the short class names become problematic? The issue you linked seeks to use short class names. Which is the direct opposite of your aim here.

To my knowledge this is not possible.