CODE SNIPPET
You can add code snippets easily with the push of a button.
You can add code snippets for various programming languages, the code will be formatted and displayed in different colors for easier reading.
From the text editor click on one of the 2 buttons:
![Product - Editor usage help Editor help 1](https://digitalmarketplay.com/wp-content/uploads/2023/11/Product_Editor_Usage_Help_Image_1-1.png)
![Product - Editor usage help Editor help 2](https://digitalmarketplay.com/wp-content/uploads/2023/11/Product_Editor_Usage_Help_Image_2-1.png)
Once clicked, a screen will open where you can paste your code and specify which language it is:
ACCORDION
Formatting and dividing a text well is very important, this will help users in reading.
To better organize the text, the text editor provides you with ACCORDIONS that allow you to enclose parts of text in “chapters that can be opened and closed”.
The code for inserting the ACCORDION is provided below, just copy and paste it into the text editor
ACCORDION
[su_spoiler title="CHANGE ME" open="yes" style="fancy" icon="chevron"]
Feature Description.
Description.
Ecc..
[/su_spoiler]
ACCORDION FIELD:
The code has fields to edit to change the display/behavior:
title=”” — The title to show at the beginning of the ACCORDION
open=”” — If the default ACCORDION should be open or closed, possible values: no, yes
![Editor help 3](https://digitalmarketplay.com/wp-content/uploads/2023/12/Product_Editor_Usage_Help_Image_3-212x300.png)
NB: To avoid page formatting issues when copying the AGREEMENT code, make sure to paste it without formatting by pressing the CTRL+SHIFT+V keys
Alternatively you can go to the menu: Editor and enable Paste as Text:
![Editor help 4](https://digitalmarketplay.com/wp-content/uploads/2023/12/Product_Editor_Usage_Help_Image_4.png)
Or as a last alternative, switch from Visual mode to Text mode and paste the code:
[su_spoiler title="CHANGE ME" open="yes" style="fancy" icon="chevron"]
Feature Description.
Description.
Ecc..
[/su_spoiler]