Code blocks on iOS don't show the right language

WHAT IS THE BUG

When creating a code block on desktop and setting the language to “C” for example, on iOS the Code block shows up as “swift”. There are many languages that work on iOS but also a few that don’t have support.

HOW TO REPRODUCE IT

  1. Create code block on desktop
  2. Set language to “C”
  3. Check that iOS shows “swift”

THE EXPECTED BEHAVIOR

All languages should be equally supported on desktop and mobile.

SYSTEM INFORMATION

  • OS:
    iOS 16.3
  • Device:
    iPhone 11
  • Anytype Version:
    0.21.0

This report has been added to our issue tracker and received by the Development Team.

Can confirm.

2 Likes

This report has been added to our issue tracker and received by the Development Team.

This still happens on v0.22.0!

Hey, this works fine for me. Just created a code block and the iOS shows the correct one every time I switch it.

Hey @Flip, did you test with multiple languages, including those that are not yet supported on mobile, e.g. C or C#?
Seems like they are not implemented on iOS yet and therefore always show up as the default language - “swift”. Could you check please? :slight_smile:

@jannis You are right.
I randomly selected a few and all of them worked. The ones you mentioned then show “swift” on iOS. Thank you for pointing that out.

1 Like