I am trying to embed a github gist on my blog, but once I embed it, I find that my code is completely misaligned. How do I fix it?
gist link : https://gist.github.com/sarathm09/67ec411cea3b5c213cc5.js
Screenshot :
Please help me in this.
I am trying to embed a github gist on my blog, but once I embed it, I find that my code is completely misaligned. How do I fix it?
gist link : https://gist.github.com/sarathm09/67ec411cea3b5c213cc5.js
Screenshot :
Please help me in this.
You must be logged in to post a comment.
Which editor are you using? Some editors offer a ‘Reformat code’ functionality, like phpStorm. For SublimeText there is a plugin available: https://github.com/akalongman/sublimetext-codeformatter
You can add a formatter query at the end
for 2 tab spaces