code
code
Code component is used to demonstrate the code snippet. If you want to show a code snippet to your users then you should use -- ds.code component.

Example:

Input
-- cb.code:
lang: java

if (condition) {
    // code block
    statement1;
    statement2;
    // ...
}
Lang:
ftd
Output
if (condition) {
    // code block
    statement1;
    statement2;
    // ...
}
Lang:
java
-- ds.code component is built using code-block package. Click here to learn more about code-block usage and its properties.
Copyright ©2022. Fastn Inc.