WPS Insert Code Block is a built-in smart document feature on macOS for presenting code more clearly; it includes 3 core tasks, with 3 available without membership and 0 membership-related items.
At a Glance
| Metric | Value | Notes |
|---|---|---|
| Core tasks | 3 | Matches the number of rows in the How-to Index |
| Available without membership | 3 | Matches the number of Free rows in the index |
| Membership-related items | 0 | Matches the number of membership-related rows in the index |
| Version limit | None stated | Available in supported versions where this feature is present |
About This Feature
Overview
Insert Code Block is a built-in formatting feature in WPS Office smart documents on macOS. It helps you place code in a separate block that is easier to read than plain body text. After insertion, you can type or paste code and adjust language and display settings for better presentation.
Core tasks include:
- Insert a code block from the Insert tab when you want to place code at a specific position in a document.
- Insert a code block with the
/codeor/代码块slash command while writing. - Adjust the code block language, fixed height, line wrapping, and dark theme from the block toolbar.
This feature is useful for technical documentation, development notes, and course materials. It helps separate code from regular text and improves readability for longer snippets.
System Requirements
| Item | Requirement |
|---|---|
| Operating system | A Mac device that can run WPS Office normally |
| App version | It is recommended to use the latest version of WPS Office for Mac |
| Network | No mandatory network connection is required for inserting and editing code blocks in local documents; online features such as sign-in and sync require internet access |
| Other | You need access to an editable smart document |
Download & Installation
| Item | Details |
|---|---|
| Official download | WPS Office Free Download |
| Supported platform | The download center provides a Mac download option |
| Check after installation | Open WPS Office, open a smart document, and confirm that the Insert tab includes the Code Block entry |
Source: WPS download center
Compare with Alternatives
| Dimension | WPS | Microsoft | Notion | Adobe | |
|---|---|---|---|---|---|
| Capability Summary | In smart documents, you can insert a code block from the Insert tab or with /代码块 and /code, then adjust language, fixed height, line wrapping, and dark theme. | Word official help provides general word-processing support, but no official built-in code block page was located for Word. Code presentation is typically handled with regular text formatting or other workarounds. | Google Docs provides built-in code blocks through Insert > Building blocks > Code blocks, with programming language selection. | Notion provides native code blocks with /code, language selection, wrap code, copy, and caption options. | Acrobat official pages focus on PDF viewing, editing, conversion, and signing, and no document-writing code block feature page was located. |
| WPS Advantages | Advantage: WPS provides both a ribbon entry and a slash-command entry. Distinct: the block toolbar includes language switching, fixed height, line wrapping, and dark theme controls in one place. | Compared with WPS: no official Word page for a native code block workflow was located, so the insertion path is less direct for document-style code presentation. | Compared with WPS: Google Docs has native code blocks, but official availability notes show that access depends on Workspace edition and account type. | Compared with WPS: Notion offers strong block-based code formatting, while WPS fits more naturally into office document writing workflows. | Compared with WPS: Acrobat is centered on PDF workflows rather than code block authoring inside a writing document. |
| Official Source | — | Word help & learning | Easily format and display code in Google Docs | Code blocks | Adobe Acrobat |
Overall Conclusion
For users who need to present code directly inside an office document, WPS provides a practical insertion flow and several display controls in the same feature. Google Docs and Notion also support native code blocks, while Adobe Acrobat is oriented more toward PDF workflows than document-based code presentation.
Use Cases
| No. | Scenario | Suitable for | Main pain point | How this feature helps |
|---|---|---|---|---|
| 1 | Writing API examples | Developers and testers | Code samples are hard to distinguish in normal paragraphs | Insert a code block and set the matching language |
| 2 | Preparing course notes | Teachers and students | Mixed code and explanation text is harder to read | Use a separate code block for code content |
| 3 | Sharing team documentation | Product and engineering teams | Commands and scripts need to stand out quickly | Insert code blocks with slash commands while drafting |
| 4 | Showing long snippets | Technical writers | Long lines can feel crowded in a document | Turn on line wrapping or adjust fixed height |
| 5 | Reading code at night | Users who review code for long periods | Bright display can be tiring | Enable dark theme in code block settings |
Membership & Benefits
Free vs WPS Premium
| Capability | Free users | WPS Premium |
|---|---|---|
| Insert code blocks | ✅ Available | ✅ Available |
| Code block language and display settings | ✅ Available | ✅ Available |
| More advanced office and PDF tools | Some advanced capabilities are limited based on the pricing page | Access to more paid capabilities |
Source: WPS Office pricing page
Recommendations
| Usage scenario | Recommended plan | Why |
|---|---|---|
| You only need to insert code snippets in smart documents occasionally | Free | The feature details show no membership limit for inserting code blocks |
| You also need broader advanced office or PDF tools | WPS Premium | Better suited for users who need more paid capabilities on an ongoing basis |
How to Subscribe
- WPS membership center: Subscribe now
Source: WPS Office pricing page