<p>I would like to know how can i escape a # in velocity. Backslash seems to escape it but it prints itself as well</p>

<p>This:    </p>

<pre><code>\#\#
</code></pre>

<p>prints:   </p>

<pre><code>\#\#
</code></pre>

<p>I would like:   </p>

<pre><code>## 
</code></pre>

Maybe, the following site helps?
http://velocity.apache.org/tools/1.4/generic/EscapeTool.html