title: Highlight numbers like keywords in a Notepad++ custom language (for access logs)
body: <p>I want to write a custom language for access logs in Notepad++.</p>
  
  <p>The Problem is that numbers (here: HTTP status codes) won't be highlighted like real keywords (i.e. GET). Notepad++ only provides a highlight color for numbers in general.</p>
  
  <p>How do I handle numbers like text?</p>
  
  <p><strong>Sample log file</strong></p>
  
  <pre><code>192.23.0.9 - - [10/Sep/2012:13:46:42 +0200] "GET /js/jquery-ui.custom.min.js HTTP/1.1" 200 206731
  192.23.0.9 - - [10/Sep/2012:13:46:43 +0200] "GET /js/onmediaquery.min.js HTTP/1.1" 200 1229
  192.23.0.9 - - [10/Sep/2012:13:46:43 +0200] "GET /en/contact HTTP/1.1" 200 12836
  192.23.0.9 - - [10/Sep/2012:13:46:44 +0200] "GET /en/imprint HTTP/1.1" 200 17380
  192.23.0.9 - - [10/Sep/2012:13:46:46 +0200] "GET /en/nothere HTTP/1.1" 404 2785
  </code></pre>
  
  <p><strong>Sample custom languages</strong><br>
  <a href="http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Language_Files" rel="noreferrer">http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Language_Files</a></p>
  
  <p>I also tried editing and importing a predefined language like this:<br>
  <a href="http://notepad-plus.sourceforge.net/commun/userDefinedLang/Log4Net.xml" rel="noreferrer">http://notepad-plus.sourceforge.net/commun/userDefinedLang/Log4Net.xml</a></p>
  
  <p>I thought the custom language should look like this:</p>
  
  <pre><code>&lt;KeywordLists&gt;
  [...]
      &lt;Keywords name="Words1"&gt;404 501&lt;/Keywords&gt;
      &lt;Keywords name="Words2"&gt;301 303&lt;/Keywords&gt;
      &lt;Keywords name="Words3"&gt;200&lt;/Keywords&gt;
  &lt;/KeywordLists&gt;
  
  &lt;Styles&gt;
      &lt;WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" colorStyle="0" fontName="Courier New" fontStyle="0"/&gt;
      [...]
      &lt;WordsStyle name="KEYWORD1" styleID="5" fgColor="FF0000" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0"/&gt;
      &lt;WordsStyle name="KEYWORD2" styleID="6" fgColor="0000FF" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="1"/&gt;
      &lt;WordsStyle name="KEYWORD3" styleID="7" fgColor="00FF00" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0"/&gt;
      [...]
  
      // This line causes number highlighting. Deletion doesn't work either.
      &lt;WordsStyle name="NUMBER" styleID="4" fgColor="0F7F00" bgColor="FFFFFF" fontName="" fontStyle="0"/&gt;
  &lt;/Styles&gt;
  </code></pre>
  
  <p>Unfortunately numbers will be colored in the same color.</p>
  
  <p>I'd like to color them like this:<br>
  <img src="https://i.stack.imgur.com/YYVWc.png" alt="Sample highlighting of numbers in the access log"></p>
  
  <p>etc.</p>
  
  <p>Any suggestions? How to handle the numbers like keywords?</p>