0.0.5 • Published 5 years ago
mofron-comp-codeprettify v0.0.5
mofron-comp-codeprettify
mofron is module based frontend framework.
text component for code-prettify
Install
npm install mofron mofron-comp-codeprettifySample
<setting>
<tag load="mofron-comp-codeprettify">Code</tag>
</setting>
<Code lang="py">print("CodePrettify Component")</Code>Parameter
| ShortForm | Parameter Name | Type | Description |
|---|---|---|---|
| ◯ | text | string | code contents |
| undefined: call as getter | |||
| lang | string | lang type (without 'lang-') | |
| editable | boolean | true: code is editable | |
| false: code is not editable | |||
| baseColor | mixed(color) | string: button text color name, #hex | |
| array: red, green, blue, (alpha) | |||
| key-value | style option | ||
| width | string (size) | width | |
| undefined: call as getter | |||
| dict | set size option |