Typing a quote character

What I’m trying to do

I’m using the “Code Emitter” plugin to run Python code within the editor. However, when I type

print("hello")

obsidian automatically changes it to

print(“hello”)

This is not the same because the quote character " has been replaced with fancy unicode ones, and . These are not Python syntax and cause an error. The same thing happens with single quotes, with ' being turned into and .

So I’m looking for either a way to turn off these fancy quote characters (either globally or just within code blocks), or a quick way to type a normal " in Obsidian without it being turned into a different character.

Things I have tried

I couldn’t see anything relating to quotes in the editor behaviour preferences, and I also couldn’t find anything previously about this in this forum.

I’ve noticed I can enter the correct character by pasting it in from another editor, but if I edit the text inside the quotes it notices and changes them to the unicode ones. So ideally I do just want to turn this feature off.

Are you using a Mac? You could check that the following setting is not active : Edit > Substitutions > Smart Quotes

If you are on another OS, there might be a similar setting to check either in Obsidian or at the system level.

1 Like

Hah, that was it! I didn’t think it was an OS feature, so it didn’t occur to me to look in the edit menu. Thank you very much!