Is it possible to highlight a search pattern when codemirror loads
问题 Is there a way for codemirror to highlight the code matching a pattern (like if I use the search addon) when the page load? So I could load the page with ?search=my_pattern and pass the pattern to codemirror. Here's a sample code and a jsfiddle. You can use CTRL+F to use the search addon. <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/codemirror/2.36.0/codemirror.css" /> <script src="http:/