Searching for python check if package is installed
gives a widget showing a code snippet.
The problem is that it doesn't format as code things inside ```, and only ones 4-spaces indented. I think it would be nice if it could recognize this type of formatting.
Code inside ``` blocks get formatted as code.