Can't set language for code fences in Ghost 2.0


#1

I’m trying to use syntax like this:

```swift
var foo = "bar"
```

But in the new Ghost 2.0 editor it switches modes to a code block as soon as I type the third back tick. Is there a way to disable this, or provide the language through some other means?

In the meantime I can fall back to HTML, but would be nice to see if there’s a better workaround.


#2

@subdigital correct, the language selection feature isn’t built into the code card at present. Rather than using a HTML card you could use the markdown card which does support the syntax you want to use


#3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.