adspace


What are the two ways you can display the code in bootstrap?

Answer Posted / Saujanya Yadav

"Code blocks can be displayed in Bootstrap using <pre> and <code> tags or by utilizing the <syntaxhighlight> class. For example:<br>n<pre><code>// Example of inline codenlet x = 5;</code></pre>nOr:n<div class="syntaxhighlight">n<code class="bash">n// Example of syntax highlighting using the <syntaxhighlight> classnnpm install expressn</code>n</div>"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the latest version of bootstrap?

88