alexwkleung / Iris

✨ A comfortable note-taking app powered by Markdown
https://irisnotes.vercel.app/
MIT License
15 stars 1 forks source link

Add syntax highlighting in advanced mode #52

Closed alexwkleung closed 9 months ago

alexwkleung commented 11 months ago

Adding syntax highlighting to the advanced mode editor would be a nice feature.

I don't think this is extremely challenging to implement, so it might come as part of v0.2.0-dev-4.3.

alexwkleung commented 11 months ago

Small note:

This should be an option and not a forced default. Some enjoy a colourful syntax highlighted editor and some dislike it.

Giving a choice to the users allows ultimate flexibility.

alexwkleung commented 11 months ago

Here's a small preview of what this could look like. Below is Iris in dark mode:

Screenshot 2023-09-29 at 3 35 32 PM

Base from https://github.com/craftzdog/cm6-themes/blob/main/packages/gruvbox-dark/src/index.ts