adspace


How can you display a code in bootstrap?

Answer Posted / Sanchit Kumar Aluna

To display code snippets in Bootstrap, use the <pre> tag with the .pre-scrollable class for smooth scrolling and the .whitespace-pre-line or .whitespace-pre classes to prevent unwanted line breaks. For syntax highlighting, you can use external libraries like PrismJS.

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