diff --git a/docs/content/features/syntax-highlighting.md b/docs/content/features/syntax-highlighting.md index 9bb9b4e..3d258d1 100644 --- a/docs/content/features/syntax-highlighting.md +++ b/docs/content/features/syntax-highlighting.md @@ -37,6 +37,117 @@ fn main() { | HTML | `html` | | CSS | `css` | | Markdown | `markdown`, `md` | +| C | `c` | + +## Examples + +### Rust + +```rust +fn main() { + println!("Hello, world!"); +} +``` + +### Python + +```python +def greet(name: str) -> str: + return f"Hello, {name}!" +``` + +### JavaScript + +```javascript +const greet = (name) => `Hello, ${name}!`; +``` + +### TypeScript + +```typescript +function greet(name: string): string { + return `Hello, ${name}!`; +} +``` + +### Go + +```go +func main() { + fmt.Println("Hello, world!") +} +``` + +### Bash + +```bash +#!/bin/bash +echo "Hello, $USER!" +``` + +### Nix + +```nix +{ pkgs }: +pkgs.mkShell { buildInputs = [ pkgs.hello ]; } +``` + +### TOML + +```toml +[package] +name = "sukr" +version = "0.1.0" +``` + +### YAML + +```yaml +name: Build +on: [push] +jobs: + build: + runs-on: ubuntu-latest +``` + +### JSON + +```json +{ + "name": "sukr", + "version": "0.1.0" +} +``` + +### HTML + +```html + + +
+ Hello! + + +``` + +### CSS + +```css +.container { + display: flex; + color: #ff79c6; +} +``` + +### C + +```c +#include` blocks without highlighting.