Code snippets
Code snippets are useful if you only need to showcase a piece of code, but don’t need to render it or show a preview. For example, if developers want to include instructions on how to fetch the code for design system components, they can do it using a code live code block.
First select the live code block from the inserter menu.
Then select the language you want to display from the “Code snippets only” section of the dropdown.
Code snippets support syntax highlighting in many different programming languages. See below for the full list of supported syntax/programming languages.
Supported syntax / programming languages
- C
- C++
- C#
- CoffeeScript
- CSS
- Dockerfile
- diff
- Dart/Flutter
- Go
- Groovy
- HTML
- HTTP
- Java
- JavaScript
- JSX
- Kotlin
- LESS
- Objective
- Perl
- Puppet
- Python
- Ruby
- Rust
- Sass
- Scala
- SCSS
- Shell
- SQL
- Swift
- TSX
- Typescript
- Vue
- XML
- YAML
๐ Note: If you’d like to request support for a language that isn’t listed above, please let us know at support@zeroheight.com.