Replacing screenshot by code snippets