mofron-comp-codeprettify
v0.0.5
Published
code-prettify component for mofron
Downloads
5
Readme
mofron-comp-codeprettify
mofron is module based frontend framework.
text component for code-prettify
Install
npm install mofron mofron-comp-codeprettify
Sample
<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 |