Skip to content

Documentation and examples for displaying inline and multiline blocks of code with Bootstrap 5. Free for personal & commercial use.

Notifications You must be signed in to change notification settings

mdbootstrap/bootstrap-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

Bootstrap Code

Documentation and examples for displaying inline and multiline blocks of code with Bootstrap 5.

Inline code

Wrap inline snippets of code with <code>. Be sure to escape HTML angle brackets.

For example, <code>&lt;section&gt;

Code blocks

Use <pre>s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add the .pre-scrollable class, which will set a max-height of 340px and provide a y-axis scrollbar

<pre><code>&lt;p&gt;Sample text here...&lt;/p&gt;
  &lt;p&gt;And another line of sample text here...&lt;/p&gt;

Much more examples and a detailed description can be found at πŸ“„ Code documentation page

About

Documentation and examples for displaying inline and multiline blocks of code with Bootstrap 5. Free for personal & commercial use.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published