What am I trying to do:
I am moving my info-collection to Obsidian, from Dynalist, FreePlane etc. Amongst other things, there are also some bookmarklets for browsers, written in javascript. I am trying to add them to a note, however after pasting the code, the rest of the text appears in red-font.
What I have tried: Looked at the help file, regarding code blocks. I put ‘’‘js at the beginning (3 ticks followed by js), Paste the code block as Text, the last line I put ‘’’ (3 ticks).
I tried also indenting the first line of the code, putting \ at the beginning and at the end of the block, nothing helps. As soon as I start writing again, the font is red.
Is there a way to tell Obsidian something like “from here on, don’t try to be smart, just treat the text as text, and nothing else”??
I love so much about Obsidian, the only thing that I strugle with are those markdown conventions which are so strange to me.
Additional info: the code of the bookmarklet (and bookmarklets in general) is something of a “spaghetti like code” - all in one block of text.
Can anybody help?