   </code></pre>

    <p>Assigning a style to this token looks like:</p>

    <pre><code>
    lex:add_style('custom_whitespace', lexer.styles.whitespace)
    </code></pre>

    <p>Do not confuse token names with rule names. They are completely different
    entities. In the example above, the lexer associates the &ldquo;custom_whitespace&rdquo;
    token with the existing style for <code>lexer.WHITESPACE</code> tokens. If instead you
    prefer to color the background of whitespace a shade of grey, it might