title: Sphinx - Use ellipses (…) in code-block snippets
body: <p>Consider you document a long code snippet and you want to represent repetitive values and lines in it with ellipses &hellip; (<code>&amp;hellip;</code>) and vertical ellipses &vellip; (<code>&amp;vellip;</code>).</p>
  
  <p>Here's an example record in JSON.  There are 26 kids and you don't want to show all of them.</p>
  
  <pre><code>.. code-block:: json
  
     {
         "total": 26,
         "kids" [
             {
                 "_id":  1,
                 "name": "Alice",
                 "age":  3
             },
             {
                 "_id":  2,
                 "name": "Becky",
                 "age":  3
             },
             ...,
             {
                 "_id":  26,
                 "name": "Zoe",
                 "age":  4
             }
         ]
     }
  </code></pre>
  
  <p>Human readers can still see this as a JSON snippet/code, generalize and guess the pattern between <em>"Becky"</em> and <em>"Zoe"</em> represented by the ellipsis (...).</p>
  
  <p>But Sphinx returns the error because this snippet has an invalid syntax.</p>
  
  <pre><code>$ make html
  ...
  /.../docs/source/sample.rst:3: WARNING: Could not lex literal_block as "json". Highlighting skipped.
  </code></pre>
  
  <p>Can I use ellipses in code-block (with syntax highlighting)?  Please note the example doesn't have to be in JSON.  You will see this issue in other languages such as Python too.</p>