Better code blocks for super notes #3465
Replies: 7 comments 1 reply
-
There should be a thing that floats that lets you set the language. |
Beta Was this translation helpful? Give feedback.
-
@DarkArc: That would be great. Where is it? I don't see that on the web app or on Android no matter where I click/tap: |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Ah, then maybe this is a bug on the two platforms I'm using (and a feature request for markdown fenced code block support) |
Beta Was this translation helpful? Give feedback.
-
The bug part appears fixed now. The syntax drop-down is at the top right corner of the screen. I don't know if I had simply missed it before or if it was more recently added. I'd still like support for opening a code block on a new line that starts with 3+ backticks and an optional syntax specification. |
Beta Was this translation helpful? Give feedback.
-
The choice of Code highlight is also quite limited and I don't see bash, php, tcl .. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to create a custom theme for code syntax highlighting ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Code blocks in super notes currently have syntax highlighting that you cannot change. I tend to write code blocks for other programming languages. My most common use for code blocks is just to get fixed-width text (it's not code). The syntax highlighting is distracting. I'd like to be able to specify the language. Defaulting to "none" seems best imho, but if you stick with whatever you've got, be sure to allow users to turn it off.
I see a lot of markdown is supported in super notes, but not fence-post code blocks, which would allow specifying the syntax highlighting. For example:
On Github, this renders as:
(Also note that I was able to seamlessly write the above markdown code block in markdown code by using a quad-backtick around my markdown-as-code block. This is useful! I'm not sure how that should manifest in super notes though.)
Beta Was this translation helpful? Give feedback.
All reactions