When using Insert Code Block, common questions usually involve where to find the entry, what content to place in the block, and language-related expectations; this section includes 3 common questions and a glossary.
FAQ
Why can’t I find the Code Block button?
- Make sure the file you opened is a Smart Document.
- Tap the Edit button at the lower right to enter editing mode.
- Tap + in the bottom toolbar and check whether Code Block appears.
What can I put into a code block after inserting it?
- A code block is suitable for sample code, command-line content, and script snippets.
- If you only need regular explanatory text, you can continue using normal paragraphs.
- When you want technical content to stand out, use a code block to separate it from body text.
Which programming languages does the code block support?
- Common languages shown on this page include Python, JavaScript, Java, C++, HTML, and CSS.
- Other code or command content can also be recorded as a normal code snippet first.
- The exact display depends on the current editing interface.
Glossary
| Term | Definition |
|---|---|
| Code block | A separate area in a document used to display code or command content independently. |
| Smart Document | A document type in WPS designed for more flexible editing and collaboration. |
| Toolbar | The editing area that contains entries for insertion, formatting, and related actions. |