djust-theming | Demo Home Components | Gallery Storybook Editor Diff

Code Block

python component Data Display 6 params
EXAMPLES 1
python
print("Hello, world!")
python
code_block(code='print("Hello, world!")', language='python', title='example.py')
USAGE
python
from djust_components.components.code_block import CodeBlock

component = CodeBlock(code='',
    language='',
    filename='',
    theme='github-dark',
    custom_class='',
    kwargs)
html = component.render()
PARAMETERS 6
NameTypeDefault
code <class 'str'> ''
language <class 'str'> ''
filename <class 'str'> ''
theme <class 'str'> 'github-dark'
custom_class <class 'str'> ''
kwargs