mdbook-langtabs
An mdBook preprocessor that creates language tabs for code examples.

Features
- Switch between language examples without scrolling
- Automatic language icons via Devicon
- Remembers selected language preference
Installation
Or install the current development version:
Setup
Either use the automatic installer:
Or manually:
- Add to your
book.toml:
[]
= "mdbook-langtabs"
[]
= ["langtabs.css"]
= ["langtabs.js"]
- Copy
langtabs.cssandlangtabs.jsto your book's root directory.
Usage
Wrap your code blocks with the special comments:
```rust
fn main() {
}
```
```python
def main():
```
```javascript
function main() {
}
```
This creates tabbed code examples that readers can switch between, as shown in the demo above.
License
MIT