I have created a page apidoc.aspx where I want to show some code snippets with description
I am using c#, Javascript, html code snippets to display, now I want to show it as well formatted and well aligned in particular section then how to achieve this?
for example:
I have this code snippet of JavaScript
<div id="code-container" class="code">
<pre>
<code>
function greet() { console.log('Hello, World!'); }
</code>
</pre>
</div>
please guide