What I’m trying to do:
In the Anvil design editor, I want to display some Python code, which includes empty curly brackets, in a Rich Text box, using markdown.
What I’ve tried and what’s not working:
Python Code Sample:
mydict = dict() # this works OK
mydict["keyname"] = "value"
However if I use this format:
mydict = {} # (using curly brackets)
mydict["keyname"] = "value"
The curly brackets disappear.
I have tried escaping the curly brackets to no avail:
mydict = \{\} # (can see them now - but also the escape character)
By the way - it looks OK in the editor, but disappear when you RUN the app.
Is there some other way to display curly brackets in markdown?
Regards, Chris