Tana is launching a new product 🚀 Get early access
⚡️ Ideas
Andrea Grasso Andrea Grasso Dec 8, 2023
Posted Sat, Mar 4, 2023 12:30 AM
Edited Fri, Dec 8, 2023 4:17 PM

Inline code formatting

Explain the problem as you see it

Tana doesn't allow me to write inline code.

Why is this a problem for you?

As someone who writes technical content, the inability to format text with inline code is a significant problem for me.

Inline code is essential for technical writing, as it allows me to display code snippets or individual lines of code in a way that is visually distinct from regular text. This helps my coworkers to understand code syntax and makes it easier for whoever is reading my notes to follow my instructions or implement my code.

Suggest a solution

Allow inline code formatting

⁨19⁩ ⁨Comments⁩

+100. I am currently keeping my programming notes in Logseq because Tana does not support proper code blocks (can't paste longer than 100 lines) and inline preformatted text.

console.log('Even this comment field supports this.');

Both Capacities and Logseq have great implementations of this.

Logseq just uses CodeMirror — it's free and completely open source: https://codemirror.net/.

Please consider prioritizing this! It would be a game-changer for anyone who uses Tana to keep technical/programming-related notes!

I have a lot of the same problems with code formatting in Tana:

  • It does not autodetect language
  • It does not allow you to search the code language using letters (for example if i want SQL i would like to be able to find it by clicking "s"). Because this is not possible i have to scroll everytime until i find my language of choice.
  • The limit to 100 lines is a problem, because some code is long
  • There is no numbered lines in the code

Please fix this so that i can fully embrace Tana for my technical notes (and stop using notion for this)

In reply to Rickard Natt och Dag Rickard Natt och Dag

I would also like a more useful option than “paste as code” for longer code blocks, but that’s another idea 😄

Should we make this a new thread entirely? The Paste as Code feature is quite limited.