• Resolved Garry

    (@mrgarry05)


    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>

    • This topic was modified 6 years, 2 months ago by Garry.
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.