How to get the language icons used in the external language evaluation cells?

Here is a screenshot of the cells:

enter image description here


1 Answer 1


After examining the output:

CurrentValue[{StyleDefinitions, "ExternalLanguage"}]

we can come up with the following command:

aProgIcons = 
 Association[# -> RawBoxes@#2 & @@@ ExternalEvaluate`FE`GetExternalLanguageMenuData[]]

enter image description here

Remark: The values of the association are Graphics(Box), so they can be rasterized or exported in whatever format.


(* RawBoxes[GraphicsBox[
   List[FaceForm[List[RGBColor[1.`, 1.`, 1.`], Opacity[1.`]]], 
    FilledCurveBox[List[List[List[1, 4, 3], List[1, 3, 3], ... *)

Thanks to Kuba for providing this answer!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.