mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Close #1851: Allow to omit an argument for code-block directive
This commit is contained in:
20
tests/roots/test-directive-code/highlight.rst
Normal file
20
tests/roots/test-directive-code/highlight.rst
Normal file
@@ -0,0 +1,20 @@
|
||||
highlight
|
||||
---------
|
||||
|
||||
.. code-block::
|
||||
|
||||
"A code-block without no language"
|
||||
|
||||
.. code-block:: python2
|
||||
|
||||
"A code-block with language argument"
|
||||
|
||||
.. highlight:: python3
|
||||
|
||||
.. code-block::
|
||||
|
||||
"A code-block without no language after highlight directive"
|
||||
|
||||
.. code-block:: python2
|
||||
|
||||
"A code-block without language argument after highlight directive"
|
||||
Reference in New Issue
Block a user