Custom Components
Code Block - Inline Code
Enabling inline code in code blocks
#Inline Code
Inline code is a way to show a code in a single line, it will be useful for showing a short code. The identifier is using backtick char (`).
#Code Example
Here an example of inline code that show an highlighted code.
`echo -e "Hello World!"`It will show like this
echo -e "Hello World!"
#Specific Language
You can also specify the language of the inline code, it will be useful for showing a short code with specific language and syntax highlighting.
`SELECT * FROM users JOIN orders ON users.id = orders.user_id{:sql}`It will show like this
SELECT * FROM users JOIN orders ON users.id = orders.user_id
Here an example for piece of code with typescript language
`const name = "World"; {:ts}`It will show like this
const name = "World";