Perfect Wiki enables you to add a code block to any of your documents.
To insert the code:
- Move your cursor to an empty line inside the item in which you'd like to add a code block.
- Click the โ+โ button โ โInsert Code Blockโ button on editor bar.
- A code block will appear, you can type or paste code in there
In Perfect Wiki editor you can choose the programming language you prefer from multiple options:
For example: Adding a code snippet using C++
In read-only mode your code is also highlighted to ease the navigation and the copy button to ease your workflow.
console.log("Hello world")
โ ๏ธTo leave the code adding mode, hit โEnterโ button 3 times.