Remove the line number from SyntaxHighlighter








I am using SyntaxHighlighter to display source code and scripts. In some cases, I want to hide/remove the line numbers.

To do that, the gutter attribute need to be set to false:

<pre class="brush: java; gutter: false;"></pre>

  • example 1: show line numbers: <pre class="brush: bash">cat /etc/issue</pre>
    cat /etc/issue
  • example 2: hide line numbers: <pre class="brush: bash; gutter: false;">cat /etc/issue</pre>
    cat /etc/issue



No comments:

Post a Comment