title: Notepad++ : Custom Syntax Highlighting for .txt files
body: <p>I keep code samples that I find useful as text files on my computer.  I store them as txt files as opposed to the language in which they are written, so that they will open in Notepad++ instead of the editor (i.e. I don't want my c++ examples to open in an IDE, just Notepad).   </p>
  
  <p>Is there a way I can have Notepad++ apply appropriate syntax highlighting to the text file by reading a special code in the text file itself?</p>
  
  <p>For example if I had some sql, the first line of the text file could read like this:</p>
  
  <pre><code>##Language=SQL 
  
  ... my sql code properly highlighted as sql ...
  </code></pre>
  
  <p>Thanks in advance.  I realize I could just choose the language after opening the file (i.e. Language > SQL), but it would be much more convenient if it could do it automatically.</p>