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