On Fri, 27 May 2022, Paul A. Rubin wrote:
Rather than LyX-Code, start with Insert > Program Listing to insert a listings widget. Right click the widget, click Settings ..., and on the main settings tab use the Language drop-down to select Python. Tweak other settings at will.
Paul, Ah ha! It's been years since I last entered any programming code in a lyx document. Thanks for the pointer. Regards, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users