๐Ÿ’ป Code Snippet

Written by alexa

โ€ข

Updated over a week ago

โ€ข

1 min read

Perfect Wiki enables you to add a code block to any of your documents.

To insert the code:

  1. Move your cursor to an empty line inside the item in which you'd like to add a code block.
  2. Click the โ€˜+โ€™ button โ†’ โ€œInsert Code Blockโ€ button on editor bar.
  3. 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:

๐Ÿ’ป Code Snippet

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. 

Was this page helpful?