I am looking for a way to make code clearly show up clearly and not wrap when it has very long lines like they so nicely do on stackoverflow.
Thanks
I am looking for a way to make code clearly show up clearly and not wrap when it has very long lines like they so nicely do on stackoverflow.
Thanks
Then you should test out Hugo’s two ways of doing it and see if that is to your liking.
I could not find any ways for making code blocks in hugo. Can you include a link to an example of how to use hugo’s two different ways of making code blocks.
Thanks
The “other” method could be better described - but is basically GitHub styled code fences (Google it) styled client side with a Javascript lib.
The server side highlight shortcode has been made slightly easier to use in the latest code base (0.13-DEV). Serverside highlighting makes the site gen a little bit slower, but the code looks fantastic.
Thanks for the tip, I will give server side highlighting a try.