V
V
Vlad2021-12-18 02:28:13
css
Vlad, 2021-12-18 02:28:13

How to left align code using highlightjs?

I'm using highlight.js to showcase code snippets on a site I'm building with Gulp 4 .
The trick is that I do these inserts in separate html templates (components) that hook to the index.html main page using the gulp-rigger plugin .
The html template with the code is inserted into the main page and indented as spaces on the left:

61bd1cd034c63455486643.png
61bd1cde1897c694609115.png

How can this be fixed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question