I'm using LyX software and need to embed python code snippets and the option I found is to put snippet in a file and then use: insert> file> Child Document ----> choose the snippet file ----> set include type to "Program Listing", set label to e.g. py:xx and caption to e.g. "My Python code" and define parameters such as backgroundcolor etc.
Firstly, how can I change the title of the object from Listing 1: to e.g. Snippet 1?
Secondly, how can I set parameters globally for all Program listing widgets so that I won't have to redefine them every time?
Thirdly, please let me know if you know of a better way to embed Python code (I'm using PyDev on Eclipse IDE for python programming).