I am trying to embed a pretty formatted code in a div but it fails to break the code into new line and possibly into tabs, has copied. I am using this code from here to test both php and html pretty formatted code in the div (Submitting form, mysql and php) I am using the example from highlightjs but it seems not to work for me. (How to format code in html / css / js/ php) Here are my html output formats: ResultView and HTMLCSSView
I also added this script above the body closing tag html document
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
With the css link in the head tag
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/default.min.css">
How Can I make this work perfectly?