Code block
Show code snippets or whole files with syntax highlighting using code blocks. We are using Prism for syntax highlighting.
Example of a code block
import * as React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, window.document.getElementById('root'));let greeting = function(name) { console.log(`Hello, ${name}!`); };
greeting("Anna");greeting = lambda {|name| puts "Hello, #{name}!"}
greeting.("Anna")greeting = fn name -> IO.puts("Hello, #{name}!") end
greeting.("Anna")Options
Set syntax...
With line numbers
With caption
Wrap code
Actions
Copying the code

Git Sync representation in Markdown
Last updated
Was this helpful?