I can’t see api doc for new CODE_BLOCK in figjam : I tried to access code with .text.characters but doesn’t seem to work ? also how to get the language ?
Hi @lepdev, you can get the code and programming language this way:
// Get code
figma.currentPage.selection[0].code
// Get programming language
figma.currentPage.selection[0].codeLanguage
2 Likes