In that case was a new inset, like include/input inset, with support to configure the different options from listings, like the programming language, ...
That will be good to have.... I googled for 2 minutes and could not find that patch right now. I found PassThru from src/layout.cpp. With a 'PassThru 1' flag, _ and newline etc are no longer translated to \_ or ~\\, but I still get two newlines so explicit newlines are required. Cheers, Bo