Open pattern from tag in code editor