Slatesource
PrivacyTerms© 2026 Slatesource

Code

Display and share formatted code snippets.

All chips

:CODE

Displays a syntax-highlighted code block. Supports the language option (typescript, python, rust, etc.), the showLineNumbers option (true/false, defaults to true), and the wrapLines option (true/false, defaults to false). All lines become the code content.

Lines

code

Options

languageshowlinenumberswraplines

Example

:CODE [language:typescript]
const x = 1;
console.log(x);

:CODE [language:python showLineNumbers:false wrapLines:true]
print("hello")