Skip to content

Better code blocks for super notes #3044

@adamhotep

Description

@adamhotep

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:

```bash
#!/bin/sh
if [ 7 -gt 4 ]; then
  echo math
fi
```

On Github, this renders as:

#!/bin/sh
if [ 7 -gt 4 ]; then
  echo math
fi

(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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions