Code Interface
- class epyk.interfaces.components.CompCodes.Code(ui)
- code(language: str, text: str = '', color: Optional[Union[str, bool]] = None, width: Optional[Union[tuple, int, str]] = (90, '%'), height: Optional[Union[tuple, int, str]] = (200, 'px'), html_code: Optional[str] = None, options: Optional[Union[bool, dict]] = None, helper: Optional[str] = None, profile: Optional[Union[bool, dict]] = None)
Generic code editor.
Underlying HTML Objects:
epyk.core.html.HtmlTextEditor.Code
Related Pages:
Usage:
Templates:
- Parameters:
language – The language
text – Optional. The text
color – Optional. The color code
width – Optional. The with details in the format(value, unit)
height – Optional. The height details in the format(value, unit)
html_code – Optional. The unique component ID
options – Optional. The object properties
helper – Optional. The helper
profile – Optional. A flag to set the component performance storage
- css(text: str = '', color: Optional[Union[str, bool]] = None, width: Optional[Union[tuple, int, str]] = (90, '%'), height: Optional[Union[tuple, int, str]] = (200, 'px'), html_code: Optional[str] = None, options: Optional[Union[bool, dict]] = None, helper: Optional[str] = None, profile: Optional[Union[bool, dict]] = None)
CSS Text editor.
- Tags:
- Categories:
Underlying HTML Objects:
epyk.core.html.HtmlTextEditor.Code
Related Pages:
Usage:
page.ui.codes.css(''' .cssdivnoborder {margin: 0 ;clear: both ;padding: 0 ;border: 0 ;} .cssdivnoborder:focus {outline: 1px solid #B4BABF ;} ''')
Templates:
- Parameters:
text – Optional. The text
color – Optional. The color code
width – Optional. The with details in the format(value, unit)
height – Optional. The height details in the format(value, unit)
html_code – Optional. The unique component ID
options – Optional. The object properties
helper – Optional. The helper
profile – Optional. A flag to set the component performance storage
- javascript(text: str = '', color: Optional[Union[str, bool]] = None, width: Optional[Union[tuple, int, str]] = (90, '%'), height: Optional[Union[tuple, int, str]] = (200, 'px'), html_code: Optional[str] = None, options: Optional[Union[bool, dict]] = None, helper: Optional[str] = None, profile: Optional[Union[bool, dict]] = None)
Javascript Text editor.
- Tags:
- Categories:
Underlying HTML Objects:
epyk.core.html.HtmlTextEditor.Code
Related Pages:
Usage:
Templates:
- Parameters:
text – Optional. The text
color – Optional. The color code
width – Optional. The with details in the format(value, unit)
height – Optional. The height details in the format(value, unit)
html_code – Optional. The unique component ID
options – Optional. The object properties
helper – Optional. The helper
profile – Optional. A flag to set the component performance storage
- markdown(text: str = '', color: Optional[Union[str, bool]] = None, width: Optional[Union[tuple, int, str]] = (90, '%'), height: Optional[Union[tuple, int, str]] = (200, 'px'), html_code: Optional[str] = None, options: Optional[Union[bool, dict]] = None, helper: Optional[str] = None, profile: Optional[Union[bool, dict]] = None)
Markdown Text editor.
Underlying HTML Objects:
epyk.core.html.HtmlTextEditor.Code
Related Pages:
Usage:
Templates:
- Parameters:
text – Optional. The text
color – Optional. The color code
width – Optional. The with details in the format(value, unit)
height – Optional. The height details in the format(value, unit)
html_code – Optional. The unique component ID
options – Optional. The object properties
helper – Optional. The helper
profile – Optional. A flag to set the component performance storage
- python(text: str = '', color: Optional[Union[str, bool]] = None, width: Optional[Union[tuple, int, str]] = (90, '%'), height: Optional[Union[tuple, int, str]] = (200, 'px'), html_code: Optional[str] = None, options: Optional[Union[bool, dict]] = None, helper: Optional[str] = None, profile: Optional[Union[bool, dict]] = None)
Python Text editor.
- Tags:
- Categories:
Underlying HTML Objects:
epyk.core.html.HtmlTextEditor.Code
Related Pages:
Usage:
Templates:
- Parameters:
text – Optional. The text
color – Optional. The color code
width – Optional. The with details in the format(value, unit)
height – Optional. The height details in the format(value, unit)
html_code – Optional. The unique component ID
options – Optional. The object properties
helper – Optional. The helper
profile – Optional. A flag to set the component performance storage
- r(text: str = '', color: Optional[Union[str, bool]] = None, width: Optional[Union[tuple, int, str]] = (90, '%'), height: Optional[Union[tuple, int, str]] = (200, 'px'), html_code: Optional[str] = None, options: Optional[Union[bool, dict]] = None, helper: Optional[str] = None, profile: Optional[Union[bool, dict]] = None)
R Text editor.
- Tags:
- Categories:
Underlying HTML Objects:
epyk.core.html.HtmlTextEditor.Code
Related Pages:
Usage:
Templates:
- Parameters:
text – Optional. The text
color – Optional. The color code
width – Optional. The with details in the format(value, unit)
height – Optional. The height details in the format(value, unit)
html_code – Optional. The unique component ID
options – Optional. The object properties
helper – Optional. The helper
profile – Optional. A flag to set the component performance storage
- rst(text: str = '', color: Optional[Union[str, bool]] = None, width: Optional[Union[tuple, int, str]] = (90, '%'), height: Optional[Union[tuple, int, str]] = (200, 'px'), html_code: Optional[str] = None, options: Optional[Union[bool, dict]] = None, helper: Optional[str] = None, profile: Optional[Union[bool, dict]] = None)
RestructuredText editor.
Underlying HTML Objects:
epyk.core.html.HtmlTextEditor.Code
Related Pages:
Usage:
Templates:
- Parameters:
text – Optional. The text
color – Optional. The color code
width – Optional. The with details in the format(value, unit)
height – Optional. The height details in the format(value, unit)
html_code – Optional. The unique component ID
options – Optional. The object properties
helper – Optional. The helper
profile – Optional. A flag to set the component performance storage
- sql(text: str = '', color: Optional[Union[str, bool]] = None, width: Optional[Union[tuple, int, str]] = (90, '%'), height: Optional[Union[tuple, int, str]] = (200, 'px'), html_code: Optional[str] = None, options: Optional[Union[bool, dict]] = None, helper: Optional[str] = None, profile: Optional[Union[bool, dict]] = None)
SQL Text editor.
- Tags:
- Categories:
Underlying HTML Objects:
epyk.core.html.HtmlTextEditor.Code
Related Pages:
Usage:
Templates:
- Parameters:
text – Optional. The text
color – Optional. The color code
width – Optional. The with details in the format(value, unit)
height – Optional. The height details in the format(value, unit)
html_code – Optional. The unique component ID
options – Optional. The object properties
helper – Optional. The helper
profile – Optional. A flag to set the component performance storage
- xml(text: str = '', color: Optional[Union[str, bool]] = None, width: Optional[Union[tuple, int, str]] = (90, '%'), height: Optional[Union[tuple, int, str]] = (200, 'px'), html_code: Optional[str] = None, options: Optional[Union[bool, dict]] = None, helper: Optional[str] = None, profile: Optional[Union[bool, dict]] = None)
XML Text editor.
- Tags:
- Categories:
Underlying HTML Objects:
epyk.core.html.HtmlTextEditor.Code
Related Pages:
Usage:
Templates:
- Parameters:
text – Optional. The text
color – Optional. The color code
width – Optional. The with details in the format(value, unit)
height – Optional. The height details in the format(value, unit)
html_code – Optional. The unique component ID
options – Optional. The object properties
helper – Optional. The helper
profile – Optional. A flag to set the component performance storage