How do I add class to pre tag
-
On my blog, I share a lot of code snippets and every language has its own syntax style.
I can add a class to the code block in Gutenberg editor, but I also need to add class to tag. There is no such option in Gutenberg editor I found
example:
<pr e class="line-numbers"><code class= "language-python"> print("Hello Python world!") </code></pre>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How do I add class to pre tag’ is closed to new replies.