Writing code in Notion

To write code in Notion use ``

For example: let x = 10

You can also write code using ``` to denote a whole code block

let x = 10

function setup(){
	createCanvas(400,400)
	background(255)
}

function draw(){
}

Sharing your documentation

You can also publish a page in Notion instead of manually sharing it in the top right corner.

Screenshot 2023-09-21 at 11.46.33 AM.png

After clicking the publish button, you can publish a site to the web and copy the shareable link.

Screenshot 2023-09-21 at 11.46.38 AM.png

Screenshot 2023-09-21 at 11.46.50 AM.png

Databases

Databases are a useful way to keep track of pages and store data. In the past I have used databases to keep track of all my class notes.

this is my database for class notes

Each one opens up into a page if you click the “open” icon in the name column. You can tag it and also set up different views and filters to organize it.

Below I have copied a link from the above database by clicking copy link to view

Screenshot 2023-09-22 at 12.08.18 PM.png

Then I have made separate views to filter my notes for each class.

Untitled