Code
Displays syntax highlighted text via shiki
console.log('Hello, world!')
↓ Import the componentimport {Code} from 'react-exo/code';
↓ Try the example<Code lang="typescript"> {`console.log('Hello, world!')`}
</Code>Technology
| Platform | Library | Support | Notes |
|---|---|---|---|
| Web | shiki | ✅ | Oniguruma Engine (WASM) |
| Android | react-native-shiki-engine | ✅ | Oniguruma Engine (JSI) |
| iOS | react-native-shiki-engine | ✅ | Oniguruma Engine (JSI) |
| MacOS | shiki | ✅ | JS Engine |
| Windows | shiki | ✅ | JS Engine |